diff --git a/.vscode/settings.json b/.vscode/settings.json index 1e20aba9..9e710f6c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -39,6 +39,7 @@ "skippable", "sonner", "Streamable", + "Supabase", "thephotoblog", "trpc", "unnest", diff --git a/README.md b/README.md index e60c6f30..f0bb914a 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,14 @@ Application behavior can be changed by configuring the following environment var - `NEXT_PUBLIC_GRID_ASPECT_RATIO = 1.5` sets aspect ratio for grid tiles (defaults to `1`—setting to `0` removes the constraint) - `NEXT_PUBLIC_OG_TEXT_ALIGNMENT = BOTTOM` keeps OG image text bottom aligned (default is top) +## Alternate database providers (experimental) + +Vercel Postgres can be switched to another Postgres-compatible, pooling provider by updating `POSTGRES_URL`. Some providers only work when SSL is disabled, which can configured by setting `DISABLE_POSTGRES_SSL = 1`. + +### Supabase +1. Ensure connection string is set to "Transaction Mode" via port `6543` +2. Disable SSL by setting `DISABLE_POSTGRES_SSL = 1` + ## Alternate storage providers Only one storage adapter—Vercel Blob, Cloudflare R2, or AWS S3—can be used at a time. Ideally, this is configured before photos are uploaded (see [Issue #34](https://github.com/sambecker/exif-photo-blog/issues/34) for migration considerations). If you have multiple adapters, you can set one as preferred by storing "aws-s3," "cloudflare-r2," or "vercel-blob" in `NEXT_PUBLIC_STORAGE_PREFERENCE`.