Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/* eslint-disable no-console */
const routerBase = process.env.NUXT_ENV_BASE_URL
? {
router: {
base: process.env.NUXT_ENV_BASE_URL,
},
}
: {}

export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
Expand Down Expand Up @@ -68,5 +59,7 @@ export default {
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
...routerBase,
router: {
base: process.env.NUXT_ENV_BASE_URL || '/',
},
}

0 comments on commit 20e52f0

Please # to comment.