.env variables are undefined in production #757
-
Hello :) I developed a plugin and try to submit to review but I've got a Javascript error in production mode. It works perfectly in development but not in production mode. Here is the log I've got on Heroku:
My .env is filled. Any ideas why? Thanks a looot! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@rianfloo This doesn't sound like an issue with this package, when you switch to production in heroku you need to specify the config variables using either the heroku cli or the heroku admin. |
Beta Was this translation helpful? Give feedback.
@rianfloo This doesn't sound like an issue with this package, when you switch to production in heroku you need to specify the config variables using either the heroku cli or the heroku admin.
https://devcenter.heroku.com/articles/config-vars