thanks for the tutorial, but I failed to get env value from "variable and secret" (on 5:15) on cloud run (the name is NEXT_PUBLIC_BACKEND_URL and I call it with process.env.NEXT_PUBLIC_BACKEND_URL). do you know why?
Yes, I realised later. You can fix this by adding the env argument in the docker for these NEXT_PUBLIC_.... They do not work from "variables and secret" because they are applied during the project build time, not the run time.
@@BinaryCorner I provided the NEXT_... env vars in the variables and secrets and it worked fine. Although I agree with your vars at build time. Could you please tell me why did they work?
i am facing issue with the env i am confused how can i use it how can i add the reqiared filed in docker file can you please tell me how execlty can i do it it will be a greate hel Thanks
Thanks for this! I was looking for a to the point tutorial and then I find yours. Perfect!
thanks for the tutorial, but I failed to get env value from "variable and secret" (on 5:15) on cloud run (the name is NEXT_PUBLIC_BACKEND_URL and I call it with process.env.NEXT_PUBLIC_BACKEND_URL). do you know why?
Yes, I realised later. You can fix this by adding the env argument in the docker for these NEXT_PUBLIC_....
They do not work from "variables and secret" because they are applied during the project build time, not the run time.
@@BinaryCorner I provided the NEXT_... env vars in the variables and secrets and it worked fine. Although I agree with your vars at build time. Could you please tell me why did they work?
Maybe you are pushing the .env file also with the code. So Nextjs picking the env from directory .env during the build process.
i am facing issue with the env i am confused how can i use it how can i add the reqiared filed in docker file can you please tell me how execlty can i do it it will be a greate hel Thanks
straightforward and on point tutorial. Thanks, man! Subbed 😊😊
Thanks. It also gets complicated when you throw in .env variables and a db
Simple and focused
Thanks 🙏
How to play with 2 versions of the same application (Canary Deployment)
You can create multiple cloud run apps
@@BinaryCorner
Thanks 🙏
Would love to see this over in aws