Nuxt/test/fixtures/full-static-with-ignore-env/nuxt.config.js

31 lines
440 B
JavaScript
Raw Normal View History

export default {
target: 'static',
export: {
payload: {
config: true
}
},
router: {
// base: '/test',
},
generate: {
ignoreEnv: true
},
foo: {
shell: process.env.SHELL
},
env: {
x: 123
},
hooks: {
export: {
before ({ setPayload }) {
setPayload({ shared: true })
},
route ({ route, setPayload }) {
setPayload({ myRoute: route })
}
}
}
}