mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 19:25:13 +00:00
298c3e3ef7
* fix: remove duplicate slashes from crawled routes * fixture: use trailing slash for hash * refactor: do trailing slash sanetization after hash removal * test: enable trailing slash for full-static fixture Co-authored-by: Pooya Parsa <pyapar@gmail.com>
23 lines
357 B
JavaScript
23 lines
357 B
JavaScript
export default {
|
|
target: 'static',
|
|
export: {
|
|
payload: {
|
|
config: true
|
|
}
|
|
},
|
|
router: {
|
|
// base: '/test',
|
|
trailingSlash: true
|
|
},
|
|
hooks: {
|
|
export: {
|
|
before ({ setPayload }) {
|
|
setPayload({ shared: true })
|
|
},
|
|
route ({ route, setPayload }) {
|
|
setPayload({ myRoute: route })
|
|
}
|
|
}
|
|
}
|
|
}
|