}
- href={SHOW_GRID_FIRST ? PATH_FEED : PATH_ROOT}
+ href={GRID_HOMEPAGE_ENABLED ? PATH_FEED : PATH_ROOT}
active={currentSelection === 'feed'}
noPadding
/>;
@@ -35,7 +35,7 @@ export default function ViewSwitcher({
const renderItemGrid = () =>
}
- href={SHOW_GRID_FIRST ? PATH_ROOT : PATH_GRID}
+ href={GRID_HOMEPAGE_ENABLED ? PATH_ROOT : PATH_GRID}
active={currentSelection === 'grid'}
noPadding
/>;
@@ -43,8 +43,8 @@ export default function ViewSwitcher({
return (
- {SHOW_GRID_FIRST ? renderItemGrid() : renderItemFeed()}
- {SHOW_GRID_FIRST ? renderItemFeed() : renderItemGrid()}
+ {GRID_HOMEPAGE_ENABLED ? renderItemGrid() : renderItemFeed()}
+ {GRID_HOMEPAGE_ENABLED ? renderItemFeed() : renderItemGrid()}
{showAdmin &&
}
diff --git a/src/site/config.ts b/src/site/config.ts
index 720a8502..632de200 100644
--- a/src/site/config.ts
+++ b/src/site/config.ts
@@ -116,8 +116,8 @@ export const CURRENT_STORAGE: StorageType =
export const PRO_MODE_ENABLED =
process.env.NEXT_PUBLIC_PRO_MODE === '1';
-export const SHOW_GRID_FIRST =
- process.env.NEXT_PUBLIC_SHOW_GRID_FIRST === '1';
+export const GRID_HOMEPAGE_ENABLED =
+ process.env.NEXT_PUBLIC_GRID_HOMEPAGE === '1';
export const STATICALLY_OPTIMIZED_PAGES =
process.env.NEXT_PUBLIC_STATICALLY_OPTIMIZE_PAGES === '1';
export const STATICALLY_OPTIMIZED_OG_IMAGES =
@@ -185,7 +185,7 @@ export const CONFIG_CHECKLIST_STATUS = {
showFilmSimulations: SHOW_FILM_SIMULATIONS,
showExifInfo: SHOW_EXIF_DATA,
isProModeEnabled: PRO_MODE_ENABLED,
- isGridFirst: SHOW_GRID_FIRST,
+ isGridHomepageEnabled: GRID_HOMEPAGE_ENABLED,
isStaticallyOptimized: (
STATICALLY_OPTIMIZED_PAGES ||
STATICALLY_OPTIMIZED_OG_IMAGES