-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Pier Dolique edited this page Jul 31, 2025
·
7 revisions
- Install Docker (required for the local database)
docker compose up -decho "DATABASE_URL=postgresql://perd:perd@db.localtest.me:5432/perd"" >> .envecho "LOCAL_DATABASE=true" >> .envnpm run db:migrate:local
To build a project locally and run it in preview mode before deployment (close to the product environment) you need to create .dev.vars file with the following content:
Do not need since wrangler@4.27.0 release. Having .env file should be enough.
DATABASE_URL=postgresql://perd:perd@db.localtest.me:5432/perd
LOCAL_DATABASE=true
OAUTH_TWITCH_CLIENT_ID = "woofBark14"
OAUTH_TWITCH_CLIENT_SECRET = "pooqueSrenque88"
SESSION_SECRET = "WoofBarkWoofBarkWoofBarkWoofBaofBarkWoofBarkWoofBark"