Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
Ran "npm run build" with environment variable "NEXT_PUBLIC_CONVEX_URL" set. However after logging
✔ Deployed Convex functions to https:[...].convex.cloud it errors with the following error message:✖ Please set CONVEX_DEPLOY_KEY to a new key which you can find on your Convex dashboard.Which seems odd as the functions itself have been successfully been deployed so it would seem the
CONVEX_DEPLOY_KEY is valid. This error seems to originate from here: https://github.com/get-convex/convex-backend/blob/aef1e1bd991d0aa46e530f3dfc88a4e8335aca7d/npm-packages/convex/src/cli/lib/deployment.ts#L181A small snippet from the copied github link:
Here
deploymentNameFromAdminKeyOrCrash will throw the specified error when it's called with preview adminKey, which it probably does because this is a preview deployment. Hopefully someone can help us out!
