Closed mpellegrini closed 1 month ago
This should be the changes needed to get this to work
import dotenv from 'dotenv'
import { z } from 'zod'
const envSchema = z.object({
DB_APPLICATION_NAME: z.string().default('node-postgres-pool'),
})
dotenv.config()
export default envSchema.parse(process.env)
Need to figure out the correct way to load the environment variables. It deploy environments like Vercel I was not getting the variables to load unless I did the classic
import 'dotenv/config
.