convex-js
convex-js copied to clipboard
Unable to run `npx convex codegen` on Vercel without `CONVEX_DEPLOY_KEY`
As far as I understand, npx convex codegen is supposed to generate local files without pushing it to the server. I do not have any problem running it locally even though I don't have any server credentials in my env.
But on Vercel there's a check that throws an error if deploy key is not present:
https://github.com/get-convex/convex-js/blob/0fc597aa9490c1e07494706c2acd0a18e7d02191/src/cli/lib/deploymentSelection.ts#L582-L596 https://github.com/get-convex/convex-js/blob/0fc597aa9490c1e07494706c2acd0a18e7d02191/src/cli/lib/envvars.ts#L300-L306
There seems to be no way to suppress this check. Again, I believe that I don't need this key set for my purpose. I'm only trying to run a codegen for the frontend, not to release the backend