You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/backend/package.json
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
"codegen-prisma:watch": "pnpm run prisma generate --watch",
18
18
"codegen-route-info": "pnpm run with-env tsx scripts/generate-route-info.ts",
19
19
"codegen-route-info:watch": "pnpm run with-env tsx watch --clear-screen=false scripts/generate-route-info.ts",
20
-
"codegen": "pnpm run with-env pnpm run generate-migration-imports && pnpm run with-env bash -c 'if [ \"$STACK_ACCELERATE_ENABLED\" = \"true\" ]; then pnpm run prisma generate --no-engine && pnpm run generate-openapi; else pnpm run codegen-prisma && pnpm run generate-openapi; fi' && pnpm run codegen-route-info",
20
+
"codegen": "pnpm run with-env pnpm run generate-migration-imports && pnpm run with-env bash -c 'if [ \"$STACK_ACCELERATE_ENABLED\" = \"true\" ]; then pnpm run prisma generate --no-engine; else pnpm run codegen-prisma; fi' && pnpm run codegen-route-info",
21
21
"codegen:watch": "concurrently -n \"prisma,docs,route-info\" -k \"pnpm run codegen-prisma:watch\"\"pnpm run watch-docs\"\"pnpm run codegen-route-info:watch\"",
consttenancy=req.method==="GET"&&req.url.endsWith("/users/me") ? "tenancy not available in /users/me as a performance hack"asnever : awaitgetSoleTenancyFromProjectBranch(projectId,branchId,true);
if(!["development","test"].includes(getNodeEnvironment())&&getEnvVariable("STACK_ALLOW_DEVELOPMENT_KEY_OVERRIDE_DESPITE_PRODUCTION","")==="this-is-dangerous"){// it's not actually that dangerous, but it changes the security model
263
263
thrownewStatusError(401,"Development key override is only allowed in development or test environments");
0 commit comments