Move blur configuration to performance section

This commit is contained in:
Sam Becker 2025-01-23 19:41:37 -06:00
parent b1ba23a986
commit 7e11c2fbd4
3 changed files with 15 additions and 15 deletions

View File

@ -107,6 +107,7 @@ Application behavior can be changed by configuring the following environment var
- `NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_OG_IMAGES = 1` enables static optimization for OG images, i.e., renders images at build time - `NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_OG_IMAGES = 1` enables static optimization for OG images, i.e., renders images at build time
- `NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_CATEGORIES = 1` enables static optimization for photo categories (`tag/[tag]`, `shot-on/[make]/[model]`, etc.), i.e., renders pages at build time - `NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_CATEGORIES = 1` enables static optimization for photo categories (`tag/[tag]`, `shot-on/[make]/[model]`, etc.), i.e., renders pages at build time
- `NEXT_PUBLIC_PRESERVE_ORIGINAL_UPLOADS = 1` prevents photo uploads being compressed before storing - `NEXT_PUBLIC_PRESERVE_ORIGINAL_UPLOADS = 1` prevents photo uploads being compressed before storing
- `NEXT_PUBLIC_BLUR_DISABLED = 1` prevents image blur data being stored and displayed (potentially useful for limiting Postgres usage)
#### Display #### Display
- `NEXT_PUBLIC_HIDE_EXIF_DATA = 1` hides EXIF data in photo details and OG images (potentially useful for portfolios, which don't focus on photography) - `NEXT_PUBLIC_HIDE_EXIF_DATA = 1` hides EXIF data in photo details and OG images (potentially useful for portfolios, which don't focus on photography)
@ -119,7 +120,6 @@ Application behavior can be changed by configuring the following environment var
- `NEXT_PUBLIC_GRID_HOMEPAGE = 1` shows grid layout on homepage - `NEXT_PUBLIC_GRID_HOMEPAGE = 1` shows grid layout on homepage
- `NEXT_PUBLIC_DEFAULT_THEME = light | dark` sets preferred initial theme (defaults to `system` when not configured) - `NEXT_PUBLIC_DEFAULT_THEME = light | dark` sets preferred initial theme (defaults to `system` when not configured)
- `NEXT_PUBLIC_MATTE_PHOTOS = 1` constrains the size of each photo, and enables a surrounding border (potentially useful for photos with tall aspect ratios) - `NEXT_PUBLIC_MATTE_PHOTOS = 1` constrains the size of each photo, and enables a surrounding border (potentially useful for photos with tall aspect ratios)
- `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 (⚠️ re-compresses uploaded images in order to remove GPS information) - `NEXT_PUBLIC_GEO_PRIVACY = 1` disables collection/display of location-based data (⚠️ re-compresses uploaded images in order to remove GPS information)
- `NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS = 1` enables public photo downloads for all visitors (⚠️ may result in increased bandwidth usage) - `NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS = 1` enables public photo downloads for all visitors (⚠️ may result in increased bandwidth usage)
- `NEXT_PUBLIC_PUBLIC_API = 1` enables public API available at `/api` - `NEXT_PUBLIC_PUBLIC_API = 1` enables public API available at `/api`

View File

@ -59,6 +59,7 @@ export default function SiteChecklistClient({
arePhotoOGImagesStaticallyOptimized, arePhotoOGImagesStaticallyOptimized,
arePhotoCategoriesStaticallyOptimized, arePhotoCategoriesStaticallyOptimized,
areOriginalUploadsPreserved, areOriginalUploadsPreserved,
isBlurEnabled,
// Display // Display
showExifInfo, showExifInfo,
showTakenAtTimeHidden, showTakenAtTimeHidden,
@ -70,7 +71,6 @@ export default function SiteChecklistClient({
hasDefaultTheme, hasDefaultTheme,
defaultTheme, defaultTheme,
arePhotosMatted, arePhotosMatted,
isBlurEnabled,
isGeoPrivacyEnabled, isGeoPrivacyEnabled,
gridAspectRatio, gridAspectRatio,
hasGridAspectRatio, hasGridAspectRatio,
@ -319,7 +319,7 @@ export default function SiteChecklistClient({
isPending={!hasAuthSecret && isTestingConnections} isPending={!hasAuthSecret && isTestingConnections}
> >
Store auth secret in environment variable: Store auth secret in environment variable:
{!hasAuthSecret && {!hasAuthSecret || true &&
<div className="overflow-x-auto"> <div className="overflow-x-auto">
<Container className="my-1.5 inline-flex" padding="tight"> <Container className="my-1.5 inline-flex" padding="tight">
<div className={clsx( <div className={clsx(
@ -481,6 +481,15 @@ export default function SiteChecklistClient({
image uploads being compressed before storing: image uploads being compressed before storing:
{renderEnvVars(['NEXT_PUBLIC_PRESERVE_ORIGINAL_UPLOADS'])} {renderEnvVars(['NEXT_PUBLIC_PRESERVE_ORIGINAL_UPLOADS'])}
</ChecklistRow> </ChecklistRow>
<ChecklistRow
title="Image blur"
status={isBlurEnabled}
optional
>
Set environment variable to {'"1"'} to prevent
image blur data being stored and displayed:
{renderEnvVars(['NEXT_PUBLIC_BLUR_DISABLED'])}
</ChecklistRow>
</Checklist> </Checklist>
<Checklist <Checklist
title="Display" title="Display"
@ -569,15 +578,6 @@ export default function SiteChecklistClient({
of each photo, and enable a surrounding border: of each photo, and enable a surrounding border:
{renderEnvVars(['NEXT_PUBLIC_MATTE_PHOTOS'])} {renderEnvVars(['NEXT_PUBLIC_MATTE_PHOTOS'])}
</ChecklistRow> </ChecklistRow>
<ChecklistRow
title="Image blur"
status={isBlurEnabled}
optional
>
Set environment variable to {'"1"'} to prevent
image blur data being stored and displayed:
{renderEnvVars(['NEXT_PUBLIC_BLUR_DISABLED'])}
</ChecklistRow>
<ChecklistRow <ChecklistRow
title="Geo privacy" title="Geo privacy"
status={isGeoPrivacyEnabled} status={isGeoPrivacyEnabled}

View File

@ -145,6 +145,8 @@ export const PRESERVE_ORIGINAL_UPLOADS =
process.env.NEXT_PUBLIC_PRESERVE_ORIGINAL_UPLOADS === '1' || process.env.NEXT_PUBLIC_PRESERVE_ORIGINAL_UPLOADS === '1' ||
// Legacy environment variable name // Legacy environment variable name
process.env.NEXT_PUBLIC_PRO_MODE === '1'; process.env.NEXT_PUBLIC_PRO_MODE === '1';
export const BLUR_ENABLED =
process.env.NEXT_PUBLIC_BLUR_DISABLED !== '1';
// DISPLAY // DISPLAY
@ -171,8 +173,6 @@ export const DEFAULT_THEME =
: 'system'; : 'system';
export const MATTE_PHOTOS = export const MATTE_PHOTOS =
process.env.NEXT_PUBLIC_MATTE_PHOTOS === '1'; process.env.NEXT_PUBLIC_MATTE_PHOTOS === '1';
export const BLUR_ENABLED =
process.env.NEXT_PUBLIC_BLUR_DISABLED !== '1';
export const GEO_PRIVACY_ENABLED = export const GEO_PRIVACY_ENABLED =
process.env.NEXT_PUBLIC_GEO_PRIVACY === '1'; process.env.NEXT_PUBLIC_GEO_PRIVACY === '1';
export const GRID_ASPECT_RATIO = export const GRID_ASPECT_RATIO =
@ -246,6 +246,7 @@ export const CONFIG_CHECKLIST_STATUS = {
arePhotoOGImagesStaticallyOptimized: STATICALLY_OPTIMIZED_PHOTO_OG_IMAGES, arePhotoOGImagesStaticallyOptimized: STATICALLY_OPTIMIZED_PHOTO_OG_IMAGES,
arePhotoCategoriesStaticallyOptimized: STATICALLY_OPTIMIZED_PHOTO_CATEGORIES, arePhotoCategoriesStaticallyOptimized: STATICALLY_OPTIMIZED_PHOTO_CATEGORIES,
areOriginalUploadsPreserved: PRESERVE_ORIGINAL_UPLOADS, areOriginalUploadsPreserved: PRESERVE_ORIGINAL_UPLOADS,
isBlurEnabled: BLUR_ENABLED,
// DISPLAY // DISPLAY
showExifInfo: SHOW_EXIF_DATA, showExifInfo: SHOW_EXIF_DATA,
showTakenAtTimeHidden: SHOW_TAKEN_AT_TIME, showTakenAtTimeHidden: SHOW_TAKEN_AT_TIME,
@ -257,7 +258,6 @@ export const CONFIG_CHECKLIST_STATUS = {
hasDefaultTheme: Boolean(process.env.NEXT_PUBLIC_DEFAULT_THEME), hasDefaultTheme: Boolean(process.env.NEXT_PUBLIC_DEFAULT_THEME),
defaultTheme: DEFAULT_THEME, defaultTheme: DEFAULT_THEME,
arePhotosMatted: MATTE_PHOTOS, arePhotosMatted: MATTE_PHOTOS,
isBlurEnabled: BLUR_ENABLED,
isGeoPrivacyEnabled: GEO_PRIVACY_ENABLED, isGeoPrivacyEnabled: GEO_PRIVACY_ENABLED,
gridAspectRatio: GRID_ASPECT_RATIO, gridAspectRatio: GRID_ASPECT_RATIO,
hasGridAspectRatio: Boolean(process.env.NEXT_PUBLIC_GRID_ASPECT_RATIO), hasGridAspectRatio: Boolean(process.env.NEXT_PUBLIC_GRID_ASPECT_RATIO),