Heroku pipeline - staging env variable carried into production

后端 未结 4 1799
时光取名叫无心
时光取名叫无心 2021-01-04 01:23

I\'ve recently deployed a React/Express app to Heroku, but I\'m having an issue with environment variables that are part of the built app and the Heroku deployment pipeline

4条回答
  •  天命终不由人
    2021-01-04 01:30

    2020 solution: use publicRuntimeConfig and serverRuntimeConfig. More here: https://nextjs.org/docs/api-reference/next.config.js/runtime-configuration

提交回复
热议问题