Open sodic opened 1 year ago
While we're at this, zod is broken by default in wasp since the "dev client/server" tsconfigs have strict in them while the compile ones don't so in dev i.e.
z.object({name: z.string()})
produces {name: string}
in dev (becauase devs can change the tsconfig)
produces {name?: string}
in production
Internal doc on the matter: https://www.notion.so/wasp-lang/RFC-Wasp-env-variables-92d3c5635391455cb0b074fe4b390af7?pvs=4
In short:
config
import vs. using directly process.env
or similar
This is what T3 does, we can take a look at them for inspiration. We should explore sense and either do it or close this issue.