App Configuration
Setup database
Vercel Postgres: connected
Setup storage (new uploads go to: Cloudflare R2)
Vercel Blob: connected
Cloudflare R2: connected
AWS S3: connected
Setup auth
Store auth secret in environment variable:
AUTH_SECRET
Setup admin user
Store admin email/password in environment variables:
ADMIN_EMAIL
ADMIN_PASSWORD
Configure domain
Not explicitly setting a domain may cause certain features to behave unexpectedly
Store in environment variable (seen in top-right nav):
NEXT_PUBLIC_SITE_DOMAIN
Add title
Store in environment variable (seen in browser tab):
NEXT_PUBLIC_SITE_TITLE
Add description
Store in environment variable (seen in nav, under title):
NEXT_PUBLIC_SITE_DESCRIPTION
Add about
Store in environment variable (seen in grid sidebar):
NEXT_PUBLIC_SITE_ABOUT
Optional
Add OpenAI secret key
Store your OpenAI secret key in order to add experimental support for AI-generated text descriptions and enable an invisible field called "Semantic Description" used to support CMD-K search:
OPENAI_SECRET_KEY
Enable rate limiting
Create Upstash Redis store from storage tab on Vercel dashboard and connect to this project to enable rate limiting
Auto-generated fields: title, tags, semantic
Comma-separated fields to auto-generate when uploading photos. Accepted values: title, caption, tags, description, all, or none (default: "title, tags, semantic"):
AI_TEXT_AUTO_GENERATED_FIELDS
Optional
Static optimization
Set environment variable to "1" to make site more responsive by enabling static optimization (i.e., rendering pages and images at build time):
NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTOS
NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_OG_IMAGES
NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_CATEGORIES
NEXT_PUBLIC_STATICALLY_OPTIMIZE_PHOTO_CATEGORY_OG_IMAGES
Preserve original uploads
Set environment variable to "1" to prevent image uploads being compressed before storing:
NEXT_PUBLIC_PRESERVE_ORIGINAL_UPLOADS
Image quality: 75
Set environment variable from "1-100" to control the quality of large photos ("100" represents highest quality/largest size):
NEXT_PUBLIC_IMAGE_QUALITY
Image blur
Set environment variable to "1" to prevent image blur data being stored and displayed:
NEXT_PUBLIC_BLUR_DISABLED
Optional
Default theme: system
Set environment variable to 'light' or 'dark' to configure initial theme (defaults to 'system'):
NEXT_PUBLIC_DEFAULT_THEME
Photo matting
Set environment variable to "1" to constrain the size of each photo, and display a surrounding border:
NEXT_PUBLIC_MATTE_PHOTOS
Optional
Show EXIF data
Set environment variable to "1" to hide EXIF data:
NEXT_PUBLIC_HIDE_EXIF_DATA
Show zoom controls
Set environment variable to "1" to hide fullscreen photo zoom controls:
NEXT_PUBLIC_HIDE_ZOOM_CONTROLS
Show taken at time
Set environment variable to "1" to hide taken at time from photo meta:
NEXT_PUBLIC_HIDE_TAKEN_AT_TIME
Show social
Set environment variable to "1" to hide X (formerly Twitter) button from share modal:
NEXT_PUBLIC_HIDE_SOCIAL
Show Fujifilm simulations
Set environment variable to "1" to prevent simulations showing up in /grid sidebar and CMD-K results:
NEXT_PUBLIC_HIDE_FILM_SIMULATIONS
Show repo link
Set environment variable to "1" to hide footer link:
NEXT_PUBLIC_HIDE_REPO_LINK
Optional
Grid homepage
Set environment variable to "1" to show grid layout on homepage:
NEXT_PUBLIC_GRID_HOMEPAGE
Grid aspect ratio: 1
Set environment variable to any number to enforce aspect ratio (default is "1", i.e., square)—set to "0" to disable:
NEXT_PUBLIC_GRID_ASPECT_RATIO
Grid density: low
Set environment variable to "1" to ensure large thumbnails on photo grid views (if not configured, density is based on aspect ratio):
NEXT_PUBLIC_SHOW_LARGE_THUMBNAILS
Optional
Geo privacy
Set environment variable to "1" to disable collection/display of location-based data:
NEXT_PUBLIC_GEO_PRIVACY
Public downloads
Set environment variable to "1" to enable public photo downloads for all visitors:
NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS
Public API
Set environment variable to "1" to enable a public API available at /api:
NEXT_PUBLIC_PUBLIC_API
Priority order
Set environment variable to "1" to prevent priority order photo field affecting photo order:
NEXT_PUBLIC_IGNORE_PRIORITY_ORDER
Legacy OG text alignment
Set environment variable to "BOTTOM" to keep OG image text bottom aligned (default is "top"):
NEXT_PUBLIC_OG_TEXT_ALIGNMENT
Optional
Debug tools
Set environment variable to "1" to temporarily enable features like photo matting, baseline grid, etc.:
ADMIN_DEBUG_TOOLS
DB optimize
Set environment variable to "1" to prevent homepages from seeding infinite scroll on load:
ADMIN_DB_OPTIMIZE
SQL debugging
Set environment variable to "1" to enable console output for all sql queries:
ADMIN_SQL_DEBUG
Changes to environment variables require a redeploy or reboot of local dev server
Domain  https://exif-photo-blog-git-app-refactor-sam-beckers-projects.vercel.app