Update env
This commit is contained in:
parent
06db4e892e
commit
7032dcaa42
5
env.ts
5
env.ts
|
|
@ -2,8 +2,8 @@ import { z } from "zod";
|
|||
const envVariables = z.object({
|
||||
DATABASE_URL: z.string(),
|
||||
JWT_SECRET: z.string(),
|
||||
WS_PORT: z.string(),
|
||||
WS_HOST: z.string()
|
||||
WS_PORT: z.string().optional(),
|
||||
WS_HOST: z.string().optional()
|
||||
});
|
||||
envVariables.parse(process.env);
|
||||
|
||||
|
|
@ -12,4 +12,3 @@ declare global {
|
|||
interface ProcessEnv extends z.infer<typeof envVariables> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,9 @@
|
|||
"scripts": {
|
||||
"check-env": "bun run ./env.ts",
|
||||
"dev": "bun run check-env && next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"key:generate": "bun run src/core/utils/generateJwtSecret.ts"
|
||||
"build": "bun run check-env && next build",
|
||||
"start": "bun run check-env && next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"prisma": {
|
||||
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user