| 1 | # Since .env is gitignored, you can use .env.example to build a new `.env` file when you clone the repo. |
| 2 | # Keep this file up-to-date when you add new variables to \`.env\`. |
| 3 | |
| 4 | # This file will be committed to version control, so make sure not to have any secrets in it. |
| 5 | # If you are cloning this repo, create a copy of this file named `.env` and populate it with your secrets. |
| 6 | |
| 7 | # When adding additional environment variables, the schema in "/src/env.ts" |
| 8 | # should be updated accordingly. |
| 9 | |
| 10 | # Database URL |
| 11 | # The database URL is used to connect to your database. It's used for commenting, and authentication. |
| 12 | DATABASE_URL="postgresql://postgres:<YOUR_PASSWORD>@localhost:5432/starter" |
| 13 | |
| 14 | # Authentication |
| 15 | # You can generate the secret via 'openssl rand -base64 32' on Unix |
| 16 | # @see https://www.better-auth.com/docs/installation |
| 17 | BETTER_AUTH_SECRET="" |
| 18 | |
| 19 | # CORS allowed origins for auth endpoints |
| 20 | # Accepts a comma-separated list OR a JSON array of URLs |
| 21 | CORS_ORIGIN="http://localhost:3000" |
| 22 | |
| 23 | # Production URL |
| 24 | # Used for authentication and metadata generation |
| 25 | NEXT_PUBLIC_BASE_URL=http://localhost:3000 |