1.0.3 • Published 2 years ago
@upenha/env v1.0.3
Upenha ENV
Inspired by T3 Env
Setup
- Install the package
npm i @upenha/env dotenv
- Create an environment file (in this case im using src/env.ts)
import { config } from 'dotenv';
config()
import { createEnv } from '@upenha/env';
export const env = createEnv({
// your zod schema for environment
})
You need an
.env
file too, so don't forget to create one