Closed sheldonvaughn closed 1 month ago
I am also getting the same error deploying in Vercel.
Hey @iohcidnal - we were able to resolve this issue by ensuring the environment variables were populated as follows and that npm build or pnpm build are being used as the build command in Vercel:
Hoping that helps resolve this for you but keep us posted!
Thanks @sheldonvaughn! I already have my env vars declared this way in Vercel, but I still get the error. I am also using turbo repo.
I think I figured out what's going on. Since I'm using turbo repo, the default build command was set to turbo run build
, causing the error. Replacing the build command with npm run build
seemed to work. The confusing part is running turbo run build
locally worked but not in Vercel.
Thanks @iohcidnal - I'll add that turbo repo and the turbo run build seem to be part of the issue here and close the issue. Hoping this helps with any future finders of this error - thanks for your detailed response!
Hi!
Is there a way to defer the definition WorkOS's env variable at runtime?
Currently, its forcing me to define the env's at build time, so when buildling a container, the env var is backed into it, with no option to change its values.
Deploying to Vercel returning an issue:
.vercel/.env.development.local variables match
Issue resolved:
This seems to occur whenthe default build command is set to turbo run build, causing the error. Replacing the build command with npm/pnpm commands seems to resolve the error.