#Stripe public key ENV not loading

8 messages · Page 1 of 1 (latest)

whole kernel
#

gatsby or next?

#

is it possible you didnt prefix the variable with NEXT_PUBLIC or GATSBY?

whole kernel
#

in that case i’m on the same setup as you and i don’t have an issue

#

is the issue showing up on your local too?

whole kernel
#

hmm.. if process.env is empty sometimes for me its because of nextjs’s env file hierarchy.. but that’s only for local

ive had to add dotfile manually but thats for the backend, not the storefront..

whole kernel
#

on production?

whole kernel
#

thats weird. are you deploying your env files as well? and/or committing them to code?

whole kernel
#

OH docker! that completely flew over my head. docker is a different ballgame then. glad you found a fix!