2022-10-27 10:36:37 +00:00
|
|
|
import { defineUntypedSchema } from 'untyped'
|
2021-03-28 20:14:04 +00:00
|
|
|
|
2022-10-27 10:36:37 +00:00
|
|
|
export default defineUntypedSchema({
|
|
|
|
generate: {
|
2021-04-15 18:49:29 +00:00
|
|
|
/**
|
2022-10-27 10:36:37 +00:00
|
|
|
* The routes to generate.
|
|
|
|
*
|
|
|
|
* If you are using the crawler, this will be only the starting point for route generation.
|
|
|
|
* This is often necessary when using dynamic routes.
|
|
|
|
*
|
2023-01-09 09:52:56 +00:00
|
|
|
* It is preferred to use `nitro.prerender.routes`.
|
2022-10-27 10:36:37 +00:00
|
|
|
*
|
|
|
|
* @example
|
|
|
|
* ```js
|
|
|
|
* routes: ['/users/1', '/users/2', '/users/3']
|
|
|
|
* ```
|
2021-04-15 18:49:29 +00:00
|
|
|
*/
|
2022-10-27 10:36:37 +00:00
|
|
|
routes: [],
|
2021-04-15 18:49:29 +00:00
|
|
|
|
|
|
|
/**
|
2023-01-09 09:52:56 +00:00
|
|
|
* This option is no longer used. Instead, use `nitro.prerender.ignore`.
|
2021-04-15 18:49:29 +00:00
|
|
|
*/
|
2022-10-27 10:36:37 +00:00
|
|
|
exclude: []
|
2021-03-28 20:14:04 +00:00
|
|
|
}
|
2022-10-27 10:36:37 +00:00
|
|
|
})
|