diff --git a/README.md b/README.md
index 3bfe0b9a..918d299d 100644
--- a/README.md
+++ b/README.md
@@ -90,7 +90,6 @@ _⚠️ READ BEFORE PROCEEDING_
Application behavior can be changed by configuring the following environment variables:
- `NEXT_PUBLIC_PRO_MODE = 1` enables higher quality image storage for jpgs (results in increased storage usage)
-- `NEXT_PUBLIC_STATICALLY_OPTIMIZE = 1` enables static optimization, i.e., building pages ahead of time (results in increased storage usage)—⚠️ _Experimental_
- `NEXT_PUBLIC_BLUR_DISABLED = 1` prevents image blur data being stored and displayed (potentially useful for limiting Postgres usage)
- `NEXT_PUBLIC_GEO_PRIVACY = 1` disables collection/display of location-based data
- `NEXT_PUBLIC_IGNORE_PRIORITY_ORDER = 1` prevents `priority_order` field affecting photo order
diff --git a/src/app/p/[photoId]/layout.tsx b/src/app/p/[photoId]/layout.tsx
index feffdcdc..4167b64c 100644
--- a/src/app/p/[photoId]/layout.tsx
+++ b/src/app/p/[photoId]/layout.tsx
@@ -1,5 +1,4 @@
import {
- GENERATE_STATIC_PARAMS_LIMIT,
GRID_THUMBNAILS_TO_SHOW_MAX,
descriptionForPhoto,
titleForPhoto,
@@ -12,20 +11,8 @@ import {
absolutePathForPhotoImage,
} from '@/site/paths';
import PhotoDetailPage from '@/photo/PhotoDetailPage';
-import { getPhotoIds } from '@/services/vercel-postgres';
-import { STATICALLY_OPTIMIZED } from '@/site/config';
import { getPhotosNearIdCachedCached } from '@/photo/cache';
-export let generateStaticParams:
- (() => Promise<{ photoId: string }[]>) | undefined = undefined;
-
-if (STATICALLY_OPTIMIZED) {
- generateStaticParams = async () => {
- const photos = await getPhotoIds({ limit: GENERATE_STATIC_PARAMS_LIMIT });
- return photos.map(photoId => ({ photoId }));
- };
-}
-
interface PhotoProps {
params: { photoId: string }
}
diff --git a/src/photo/index.ts b/src/photo/index.ts
index 0c94abd5..2af0a08f 100644
--- a/src/photo/index.ts
+++ b/src/photo/index.ts
@@ -13,8 +13,6 @@ import {
import camelcaseKeys from 'camelcase-keys';
import type { Metadata } from 'next';
-export const GENERATE_STATIC_PARAMS_LIMIT = 1000;
-
// ROOT PAGE
export const INFINITE_SCROLL_INITIAL_HOME =
process.env.NODE_ENV === 'development' ? 2 : 12;
diff --git a/src/site/SiteChecklistClient.tsx b/src/site/SiteChecklistClient.tsx
index 00f647b1..c5f876e5 100644
--- a/src/site/SiteChecklistClient.tsx
+++ b/src/site/SiteChecklistClient.tsx
@@ -39,7 +39,6 @@ export default function SiteChecklistClient({
showFilmSimulations,
showExifInfo,
isProModeEnabled,
- isStaticallyOptimized,
isBlurEnabled,
isGeoPrivacyEnabled,
isPriorityOrderEnabled,
@@ -334,17 +333,6 @@ export default function SiteChecklistClient({
higher quality image storage:
{renderEnvVars(['NEXT_PUBLIC_PRO_MODE'])}
-
- Set environment variable to {'"1"'} to enable
- static optimization, i.e., build pages ahead of time:
- {renderEnvVars(['NEXT_PUBLIC_STATICALLY_OPTIMIZE'])}
-