more ENV refactoring

This commit is contained in:
Dobromir Popov
2024-04-01 09:50:28 +03:00
parent e5ba7a33a1
commit d47297e2f7
3 changed files with 30 additions and 31 deletions

View File

@ -12,7 +12,7 @@ module.exports = {
pageExtensions: ['ts', 'tsx', 'md', 'mdx'], // Replace `jsx?` with `tsx?`
env: {
env: process.env.NODE_ENV,
server: 'http://' + process.env.NEXT_PUBLIC_HOST + ':' + process.env.NEXT_PUBLIC_PORT + '',
server: process.env.NEXT_PUBLIC_PROTOCOL + '://' + process.env.NEXT_PUBLIC_HOST + ':' + process.env.NEXT_PUBLIC_PORT + '',
},
webpack(config, { isServer }) {