-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cpa): updates CPAs w/
vercel-postgres
db types to use `POSTGRES…
…_URL` & updates `.env.example` to use generic env var strings (#10027) CPA projects generated with the `vercel-postgres` db type were not receiving the proper DB env vars in the .env.example & .env files With the `vercel-postgres` db type, the DB env var needs to be `POSTGRES_URL` not `DATABASE_URI`. Additionally, updates the generated .env.example file to show generic env var strings. #### Blank w/ MongoDB: - `.env.example`: ``` DATABASE_URI=mongodb://127.0.0.1/your-database-name PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload DATABASE_URI=mongodb://127.0.0.1/test-cpa-blank-mongodb PAYLOAD_SECRET=aef857429edc7f42a90bb374 ``` #### Blank w/ Postgres: - `.env.example`: ``` DATABASE_URI=postgres://postgres:<password>@127.0.0.1:5432/your-database-name PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload DATABASE_URI=postgres://postgres:<password>@127.0.0.1:5432/test-cpa-blank-postgres PAYLOAD_SECRET=241bfe11fbe0a56dd9757019 ``` #### Blank w/ SQLite: - `.env.example`: ``` DATABASE_URI=file:./your-database-name.db PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload DATABASE_URI=file:./test-cpa-blank-sqlite.db PAYLOAD_SECRET=a7808731b93240a73a11930c ``` #### Blank w/ vercel-postgres: - `.env.example`: ``` POSTGRES_URL=postgres://postgres:<password>@127.0.0.1:5432/your-database-name PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload POSTGRES_URL=postgres://postgres:<password>@127.0.0.1:5432/test-cpa-blank-vercel-postgres PAYLOAD_SECRET=af3951e923e8e4662c9c3d9e ``` Fixes #9996
- Loading branch information
1 parent
b0b2fc6
commit 70666a0
Showing
2 changed files
with
62 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters