adding provider causes type error
when adding a new provider, I get the following error despite having changing the ENV and adding the new environment variables.
Type 'string | undefined' is not assignable to type 'string'.
17 Replies
I removed process, now I get this error
when you see an error that's happening to part, but not all, check the diff
then you need to add it to the schema
scroll up to the top where
env
is imported and go to that file
it should either be schema.ts
or server.ts
is it not this stuff?
no
ahhh ok I found the file
so the point of the schema is that we have typesafe env using zod
this ensures, at build time, that all the environment variables that need to be there are there and that they are the right type
yes, add that, and below
makes sense yea
got it thank you
👍
now I gotta figure out what this entire file is doing lmao
thanks for the help❣️