EnvironmentConfig
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Utility to retrieve typesafe environment variable configuration with Zod.
const { DB_HOST } = config({
DB_HOST: z.string(),
}); // DB_HOST is a string, or an error is thrown.