Browse Source

Add environment variable for basePath.

dev
Mike Cao 9 months ago
parent
commit
e2a6bf9f94
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      next.config.js

+ 2
- 1
next.config.js View File

@ -6,6 +6,7 @@ module.exports = {
VERSION: pkg.version,
FORCE_SSL: !!process.env.FORCE_SSL,
},
basePath: process.env.BASE_PATH,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
@ -28,6 +29,6 @@ module.exports = {
},
],
},
]
];
},
};

Loading…
Cancel
Save