2022-08-26 15:47:29 +00:00
|
|
|
import { defineUntypedSchema } from 'untyped'
|
2021-03-28 20:14:04 +00:00
|
|
|
|
2022-08-26 15:47:29 +00:00
|
|
|
export default defineUntypedSchema({
|
2022-10-27 10:36:37 +00:00
|
|
|
router: {
|
|
|
|
/**
|
2023-11-06 09:35:05 +00:00
|
|
|
* Additional router options passed to `vue-router`. On top of the options for `vue-router`,
|
|
|
|
* Nuxt offers additional options to customize the router (see below).
|
|
|
|
* @note Only JSON serializable options should be passed by Nuxt config.
|
2022-10-27 10:36:37 +00:00
|
|
|
* For more control, you can use `app/router.options.ts` file.
|
|
|
|
* @see [documentation](https://router.vuejs.org/api/interfaces/routeroptions.html).
|
2023-06-08 21:50:29 +00:00
|
|
|
* @type {typeof import('../src/types/router').RouterConfigSerializable}
|
2022-10-27 10:36:37 +00:00
|
|
|
*/
|
2023-11-06 09:35:05 +00:00
|
|
|
options: {
|
|
|
|
/**
|
|
|
|
* You can enable hash history in SPA mode. In this mode, router uses a hash character (#) before
|
|
|
|
* the actual URL that is internally passed. When enabled, the
|
|
|
|
* **URL is never sent to the server** and **SSR is not supported**.
|
|
|
|
* @type {typeof import('../src/types/router').RouterConfigSerializable['hashMode']}
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
hashMode: false,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Customize the scroll behavior for hash links.
|
|
|
|
* @type {typeof import('../src/types/router').RouterConfigSerializable['scrollBehaviorType']}
|
|
|
|
* @default 'auto'
|
|
|
|
*/
|
2024-04-05 18:08:32 +00:00
|
|
|
scrollBehaviorType: 'auto',
|
|
|
|
},
|
|
|
|
},
|
2022-08-26 15:47:29 +00:00
|
|
|
})
|