Ruben
CCConvex Community
•Created by Ruben on 9/30/2024 in #support-community
Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
I did however find another issue, and I'm not sure if it intentional or I just missed some documentation. Everytime I do a preview deployment a new environment is created and the
NEXT_PUBLIC_CONVEX_URL
is different and the newly created database is empty even though I'm releasing from the same branch.
Do you know if this is intentional or/or if I can disable this and reuse the same preview environment for the same branch?13 replies
CCConvex Community
•Created by Ruben on 9/30/2024 in #support-community
Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
Ah thanks a lot, of course it does'nt make much sense to do run production migrations on a preview deploy, thanks for the help!
13 replies
CCConvex Community
•Created by Ruben on 9/30/2024 in #support-community
Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
While still allowing someone to call it with —prod to force someone to run the migrations on prod
13 replies
CCConvex Community
•Created by Ruben on 9/30/2024 in #support-community
Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
Also wouldn’t it be nice to be call it with —auto where convex automatically infers which environment to run on depending on the specified token? So the same commands works independently of the environment it is called from?
13 replies
CCConvex Community
•Created by Ruben on 9/30/2024 in #support-community
Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
But I would like to run the migrations on the preview environment, so would that be —preview then?
13 replies
CCConvex Community
•Created by Ruben on 9/30/2024 in #support-community
Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
And yes the preview key looks like
preview:[team-name]:[project-name]|ey...
13 replies
CCConvex Community
•Created by Ruben on 9/30/2024 in #support-community
Preview deployment fails with: '✖ Please set CONVEX_DEPLOY_KEY to a new key which you can [...]'
The build command is:
npx convex deploy --cmd 'npm run build' && npx convex run migrations --prod
and npm run build
just runs next build
13 replies
CCConvex Community
•Created by Ruben on 5/22/2024 in #support-community
Getting an error when trying to deploy a convex preview environment
Now I'm just running the following for a simplified test:
npx convex deploy --preview-create TEST-321
but still receiving the error, but only in vercel, locally it works9 replies
CCConvex Community
•Created by Ruben on 5/22/2024 in #support-community
Getting an error when trying to deploy a convex preview environment
I can provide my project name and org name so perhaps you can see something in the logs?
9 replies
CCConvex Community
•Created by Ruben on 5/22/2024 in #support-community
Getting an error when trying to deploy a convex preview environment
Yes I've tried
--preview-create TEST
this one but to no avail. Echoing CONVEX_DEPLOY_KEY prints the expected value9 replies
CCConvex Community
•Created by Ruben on 5/22/2024 in #support-community
Getting an error when trying to deploy a convex preview environment
Thanks for the quick response, and locally it does work. However in the vercel deploy I still receive the same error. Is there something I can do to get some additional logs?
9 replies
CCConvex Community
•Created by Ruben on 5/22/2024 in #support-community
Getting an error when trying to deploy a convex preview environment
I've also dug around in the code and it seems to originate from the following code:
https://github.com/get-convex/convex-backend/blob/af95bf5446618a9d9be82a320b64091e947d8dd6/npm-packages/convex/src/cli/deploy.ts#L204
But going through the calls that it's making it seems fine deducing the product name etc... from preview key
9 replies