generated from nhcarrigan/template
fix: override CORS_ORIGIN and redirect URI in dev to prevent prod redirect
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"scripts": {
|
||||
"build": "prisma generate && tsc -p tsconfig.json",
|
||||
"db:push": "prisma db push",
|
||||
"dev": "op run --env-file=./prod.env -- tsx watch src/index.ts",
|
||||
"dev": "op run --env-file=./prod.env -- sh -c 'CORS_ORIGIN=http://localhost:5173 DISCORD_REDIRECT_URI=http://localhost:3898/auth/callback tsx watch src/index.ts'",
|
||||
"lint": "eslint --max-warnings 0 src",
|
||||
"start": "op run --env-file=./prod.env -- node prod/src/index.js",
|
||||
"test": "vitest run --coverage"
|
||||
|
||||
Reference in New Issue
Block a user