### What? Previously, `.env` & `.env.example` modifications during `cpa` occurred after a project was initialized. ### Why? As a result, these modifications would be seen as uncommitted modifications in the project repo. ### How? Now, we make these modifications in the `createProject` script before the project is initialized. Also, updates the **template** `.env.example` files to use the generic db name `your-database-name` for better alignment & clarity. Fixes #10232
12 lines
350 B
Plaintext
12 lines
350 B
Plaintext
# Database connection string
|
|
DATABASE_URI=mongodb://127.0.0.1/your-database-name
|
|
|
|
# Or use a PG connection string
|
|
#DATABASE_URI=postgresql://127.0.0.1:5432/your-database-name
|
|
|
|
# Used to encrypt JWT tokens
|
|
PAYLOAD_SECRET=YOUR_SECRET_HERE
|
|
|
|
# Used to configure CORS, format links and more. No trailing slash
|
|
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
|