feat: getting the db ready
This commit is contained in:
8
server/env.ts
Normal file
8
server/env.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'dotenv/config'
|
||||
import { z } from 'zod'
|
||||
|
||||
const schema = z.object({
|
||||
DATABASE_URL: z.string().min(1),
|
||||
})
|
||||
|
||||
export const env = schema.parse(process.env)
|
||||
Reference in New Issue
Block a user