fix: override CORS_ORIGIN and redirect URI in dev to prevent prod redirect

This commit is contained in:
2026-05-06 14:05:53 -07:00
committed by Naomi Carrigan
parent d45b80fe4a
commit f4b800fbae
4 changed files with 62 additions and 60 deletions
+1 -1
View File
@@ -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"