mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +00:00
fix(schema): routeRules config (#8252)
This commit is contained in:
parent
7ebd1558ee
commit
e44404f8e3
@ -11,7 +11,7 @@ export default defineUntypedSchema({
|
|||||||
* @version 3
|
* @version 3
|
||||||
*/
|
*/
|
||||||
nitro: {
|
nitro: {
|
||||||
routes: {
|
routeRules: {
|
||||||
$resolve: async (val, get) => ({
|
$resolve: async (val, get) => ({
|
||||||
...await get('routeRules') || {},
|
...await get('routeRules') || {},
|
||||||
...val || {}
|
...val || {}
|
||||||
@ -26,7 +26,7 @@ export default defineUntypedSchema({
|
|||||||
*
|
*
|
||||||
* @see https://nitro.unjs.io/config/#routes
|
* @see https://nitro.unjs.io/config/#routes
|
||||||
*
|
*
|
||||||
* @type {typeof import('nitropack')['NitroConfig']['routes']}
|
* @type {typeof import('nitropack')['NitroConfig']['routeRules']}
|
||||||
* @version 3
|
* @version 3
|
||||||
*/
|
*/
|
||||||
routeRules: {},
|
routeRules: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user