[Closes #8] Added authentication
This commit is contained in:
parent
6eefa137bb
commit
97211cdccd
65 changed files with 5831 additions and 440 deletions
13
shared/utils/env.ts
Normal file
13
shared/utils/env.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { z } from "zod";
|
||||
|
||||
const EnvSchema = z.object({
|
||||
NODE_ENV: z.string(),
|
||||
DATABASE_URL: z.string(),
|
||||
BETTER_AUTH_SECRET: z.string(),
|
||||
BETTER_AUTH_URL: z.string(),
|
||||
});
|
||||
|
||||
export type EnvSchema = z.infer<typeof EnvSchema>;
|
||||
|
||||
// eslint-disable-next-line node/no-process-env
|
||||
export default EnvSchema.parse(process.env);
|
||||
Loading…
Add table
Add a link
Reference in a new issue