diff --git a/next.config.js b/next.config.js index 7404e9f..c492e71 100644 --- a/next.config.js +++ b/next.config.js @@ -1,3 +1,5 @@ +const webpack = require('webpack'); + module.exports = { exportPathMap() { return { @@ -8,4 +10,11 @@ module.exports = { '/view-questionnaire': { page: '/view-questionnaire' }, }; }, + webpack: (cfg) => { + cfg.plugins.push(new webpack.DefinePlugin({ + 'process.env.REACT_APP_API_BASE_URL': JSON.stringify(process.env.REACT_APP_API_BASE_URL), + })); + + return cfg; + }, };