Handle undefined BASE_PATH

pull/3/head
Dmitry Ignatiev 1 year ago
parent 02de8ea161
commit eb64b63cb1

@ -19,7 +19,7 @@ export default defineConfig({
build: { build: {
outDir: path.resolve(currentDir, 'wwwroot') outDir: path.resolve(currentDir, 'wwwroot')
}, },
base: (process.env.BASE_PATH.replace(/\/$/, '') ?? '') + '/', base: ((process.env.BASE_PATH ?? '').replace(/\/$/, '') ?? '') + '/',
server: { server: {
port: 8080, port: 8080,
hot: true, hot: true,

Loading…
Cancel
Save