nextauth deployed in gcp no_secret

Hi im currently deploying my app into gcp and somehow it keep saying NO_SECRET in the logs i tried setting up variables in .env with 1. NEXTAUTH_SECRET (and nextauth will automatically get the secret) 2. set custom variables like MY_SECRET then define it in [...nextauth].ts secret: process.env.MY_SECRET both of these doesnt work and keep saying NO_SECRET in production what i tried working is 1. hard coded the secret like secret: "mysupersecretkey" 2. exposing my env with NEXT_PUBLIC_MY_SECRET but i dont feel safe with exposing my secret anyone have any idea ? thanks!
1 Reply
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server