Testing database connection
Postgres: connected
Testing storage connection
Vercel Blob: create store  and connect to project
Cloudflare R2: 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 language
zh-cn
Store in environment variable (check README for supported languages):
NEXT_PUBLIC_LOCALE
Configure domain
myblogrsq.space
Store in environment variable (used in explicit share urls, seen in nav if no title is defined):
NEXT_PUBLIC_DOMAIN
Meta title
Strtus's_Gallary
Store in environment variable (seen in search results and browser tab):
NEXT_PUBLIC_META_TITLE
Meta description
myblogrsq.space
Store in environment variable (seen in search results):
NEXT_PUBLIC_META_DESCRIPTION
Nav title
myblogrsq.space
Store in environment variable (replaces domain in top-right nav):
NEXT_PUBLIC_NAV_TITLE
Nav caption
Store in environment variable (seen in top-right nav, under title):
NEXT_PUBLIC_NAV_CAPTION
Page about
Store in environment variable (seen in sidebar):
NEXT_PUBLIC_PAGE_ABOUT
Rate limiting
Create Upstash Redis store from storage tab on Vercel dashboard and connect to this project to enable rate limiting on external services
OpenAI
Store OpenAI secret key in order to enable AI-generated text descriptions, including an invisible field called "Semantic Description", which supports CMD-K search and image accessibility:
OPENAI_SECRET_KEY
Google Places
Store Google Places API key in order to add location meta to entities like albums:
GOOGLE_PLACES_API_KEY
Auto-generated text fields
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
Base URL override (experimental)
Store base URL in environment variable to use alternate OpenAI-compatible providers:
OPENAI_BASE_URL
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
Visibility and ordering
1.recents
2.albums
3.tags
4.cameras
5.lenses
6.recipes
7.films
* years
* focal-lengths
Configure order and visibility of categories (seen in grid sidebar and CMD-K results) by storing comma-separated values (default: "recents,​albums,​tags,​cameras,​lenses,​recipes,​films"):
NEXT_PUBLIC_CATEGORY_VISIBILITY
Show on mobile
Set environment variable to "1" to prevent categories displaying on mobile grid view:
NEXT_PUBLIC_HIDE_CATEGORIES_ON_MOBILE
Show image hovers
Set environment variable to "1" to prevent images displaying when hovering over category links:
NEXT_PUBLIC_HIDE_CATEGORY_IMAGE_HOVERS
Collapsible sidebar
Set environment variable to "1" to always show expanded category content
NEXT_PUBLIC_EXHAUSTIVE_SIDEBAR_CATEGORIES
Hide tags with only 1 photo
Set environment variable to "1" to only show tags with 2 or more photos
NEXT_PUBLIC_HIDE_TAGS_WITH_ONE_PHOTO
Default order
taken-at (default)
taken-at-oldest-first
uploaded-at
uploaded-at-oldest-first
Change default sort on grid/full homepages
NEXT_PUBLIC_DEFAULT_SORT
Nav sort control: toggle
Set environment variable to "none", "toggle" (default), or "menu", to control sort UI on grid/full homepages:
NEXT_PUBLIC_NAV_SORT_CONTROL
Color sortExperimental
Set environment variable to "1" to enable color-based sorting (forces nav sort control to "menu," flags photos missing color data in admin dashboard)—color identification benefits greatly from AI being enabled:
NEXT_PUBLIC_COLOR_SORT
Color sort configurationExperimental
Configure which colors start first (accepts a hue of 0 to 360, default: 80) and which are considered sufficiently vibrant (accepts a chroma of 0 to 0.37, default: 0.05):
NEXT_PUBLIC_COLOR_SORT_STARTING_HUE = 80
NEXT_PUBLIC_COLOR_SORT_CHROMA_CUTOFF = 0.05
Priority-based
Set environment variable to "1" to take priority field into account when sorting photos (enabling may have performance consequences):
NEXT_PUBLIC_PRIORITY_BASED_SORTING
Show keyboard shortcut tooltips
Set environment variable to "1" to hide keyboard shortcut tooltips in areas like the main nav, and previous/next photo links:
NEXT_PUBLIC_HIDE_KEYBOARD_SHORTCUT_TOOLTIPS
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 repo link
Set environment variable to "1" to hide footer link:
NEXT_PUBLIC_HIDE_REPO_LINK
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: high
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
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
Custom photo matting colors
Set environment variable hex values (e.g., #cccccc) to override matte colors:
NEXT_PUBLIC_MATTE_COLOR
NEXT_PUBLIC_MATTE_COLOR_DARK
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
Social networks
1.x
* threads
* facebook
* linkedin
Configure order and visibility of social networks (seen in share modal) by storing comma-separated values (accepts "all" or "none", defaults to "x")
NEXT_PUBLIC_SOCIAL_NETWORKS
Site feeds (JSON/RSS)
Set environment variable to "1" to enable feeds at /feed.json and /rss.xml:
NEXT_PUBLIC_SITE_FEEDS
Legacy OG text alignment
Set environment variable to "BOTTOM" to keep OG image text bottom aligned (default is "top"):
NEXT_PUBLIC_OG_TEXT_ALIGNMENT
Custom page scripts
Set environment variable to comma-separated list of URLs to be added to the bottom of the body tag via "next/script":
PAGE_SCRIPT_URLS
Changes to environment variables require a new deployment to take effect