8 months ago
I am trying to launch my nextjs15 app with prisma and google cloud sql
however after setting the environment variables using the variables even assigning all of them as shared variables to my project the build fails because those variables dont exist.
IN my variables tab it shows 7 variables, in the deployment it shows 0
Pinned Solution
8 months ago
You have to double-check that you’ve assigned them to the correct service (not just as “shared” variables). Shared variables only work if the service is set to inherit them (sometimes you need to add them directly to the service). Try redeploying after making sure the variables are attached to the right place. If it still doesn’t work, remove and re-add the variables, then redeploy.
2 Replies
8 months ago
You have to double-check that you’ve assigned them to the correct service (not just as “shared” variables). Shared variables only work if the service is set to inherit them (sometimes you need to add them directly to the service). Try redeploying after making sure the variables are attached to the right place. If it still doesn’t work, remove and re-add the variables, then redeploy.
Status changed to Solved chandrika • 8 months ago