MCPcopy Create free account
hub / github.com/epicweb-dev/epic-stack / init

Function init

app/utils/env.server.ts:28–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28export function init() {
29 const parsed = schema.safeParse(process.env)
30
31 if (parsed.success === false) {
32 console.error(
33 '❌ Invalid environment variables:',
34 parsed.error.flatten().fieldErrors,
35 )
36
37 throw new Error('Invalid environment variables')
38 }
39}
40
41/**
42 * This is used in both `entry.server.ts` and `root.tsx` to ensure that

Callers 2

entry.server.tsxFile · 0.90
entry.client.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected