Refine config sub-status layout
This commit is contained in:
parent
9940bdaf03
commit
99f3f68aef
@ -169,6 +169,16 @@ export default function SiteChecklistClient({
|
|||||||
{label}
|
{label}
|
||||||
</span>
|
</span>
|
||||||
</div>;
|
</div>;
|
||||||
|
|
||||||
|
const renderSubStatusWithEnvVar = (
|
||||||
|
type: ComponentProps<typeof StatusIcon>['type'],
|
||||||
|
variable: string,
|
||||||
|
) =>
|
||||||
|
renderSubStatus(
|
||||||
|
type,
|
||||||
|
renderEnvVars([variable]),
|
||||||
|
'translate-y-[5px]',
|
||||||
|
);
|
||||||
|
|
||||||
const renderError = ({
|
const renderError = ({
|
||||||
connection,
|
connection,
|
||||||
@ -469,21 +479,17 @@ export default function SiteChecklistClient({
|
|||||||
>
|
>
|
||||||
Set environment variable to {'"1"'} to enable static optimization,
|
Set environment variable to {'"1"'} to enable static optimization,
|
||||||
i.e., rendering pages and images at build time:
|
i.e., rendering pages and images at build time:
|
||||||
{renderSubStatus(
|
{renderSubStatusWithEnvVar(
|
||||||
arePhotosStaticallyOptimized ? 'checked' : 'optional',
|
arePhotosStaticallyOptimized ? 'checked' : 'optional',
|
||||||
renderEnvVars(['NEXT_PUBLIC_STATICALLY_OPTIMIZE_PAGES']),
|
'NEXT_PUBLIC_STATICALLY_OPTIMIZE_PAGES',
|
||||||
'translate-y-[3.5px]',
|
|
||||||
)}
|
)}
|
||||||
{renderSubStatus(
|
{renderSubStatusWithEnvVar(
|
||||||
arePhotoOGImagesStaticallyOptimized ? 'checked' : 'optional',
|
arePhotoOGImagesStaticallyOptimized ? 'checked' : 'optional',
|
||||||
renderEnvVars(['NEXT_PUBLIC_STATICALLY_OPTIMIZE_OG_IMAGES']),
|
'NEXT_PUBLIC_STATICALLY_OPTIMIZE_OG_IMAGES',
|
||||||
'translate-y-[3.5px]',
|
|
||||||
)}
|
)}
|
||||||
{renderSubStatus(
|
{renderSubStatusWithEnvVar(
|
||||||
arePhotoCategoriesStaticallyOptimized ? 'checked' : 'optional',
|
arePhotoCategoriesStaticallyOptimized ? 'checked' : 'optional',
|
||||||
// eslint-disable-next-line max-len
|
'NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_CATEGORIES',
|
||||||
renderEnvVars(['NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_CATEGORIES']),
|
|
||||||
'translate-y-[3.5px]',
|
|
||||||
)}
|
)}
|
||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
<ChecklistRow
|
<ChecklistRow
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user