Nuxt/test/fixtures/full-static/nuxt.config.js
Daniel Roe b050861332
fix(generator): respect publicPath for static assets (#8344)
* fix: respect publicPath for static assets

* test: add test for correct `publicPath` URL handling
2020-11-14 23:10:16 +01:00

31 lines
470 B
JavaScript

export default {
target: 'static',
export: {
payload: {
config: true
}
},
router: {
// base: '/test',
},
build: {
publicPath: 'https://cdn.nuxtjs.org/test/_nuxt/'
},
foo: {
shell: process.env.SHELL
},
env: {
x: 123
},
hooks: {
export: {
before ({ setPayload }) {
setPayload({ shared: true })
},
route ({ route, setPayload }) {
setPayload({ myRoute: route })
}
}
}
}