Nuxt/test/fixtures/full-static/nuxt.config.js
Ahad Birang 298c3e3ef7
fix(generator): avoid duplicate slashes for routes ending with hash (#7776)
* 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>
2020-07-27 11:01:24 +02:00

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 })
}
}
}
}