Next.js Discord

Discord Forum

Nextjs - GCP Secret Manager

Unanswered
Swedish Elkhound posted this in #help-forum
Open in Discord
Swedish ElkhoundOP
I am trying to deply my nextjs app on GCP and integrate the gcp secret manager to load the env variables in .env file using an script but nextjs is not taking it and when i tried exporting it using nextconfig the prisma is not taking the db url!
Any solution to this anyone ??

3 Replies

Swedish ElkhoundOP
I need to change the env in runtime, like i do in nodejs project of mine
But when i do that in nextjs it doesnt takes the latest ones !