Add postgres/supabase README instructions
This commit is contained in:
parent
5e7f41406f
commit
8239788c97
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -39,6 +39,7 @@
|
|||||||
"skippable",
|
"skippable",
|
||||||
"sonner",
|
"sonner",
|
||||||
"Streamable",
|
"Streamable",
|
||||||
|
"Supabase",
|
||||||
"thephotoblog",
|
"thephotoblog",
|
||||||
"trpc",
|
"trpc",
|
||||||
"unnest",
|
"unnest",
|
||||||
|
|||||||
@ -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_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)
|
- `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
|
## 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`.
|
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`.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user