fix(schema): routeRules config (#8252)

This commit is contained in:
Daniel Roe 2022-10-17 15:10:46 +01:00 committed by GitHub
parent 7ebd1558ee
commit e44404f8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ export default defineUntypedSchema({
* @version 3
*/
nitro: {
routes: {
routeRules: {
$resolve: async (val, get) => ({
...await get('routeRules') || {},
...val || {}
@ -26,7 +26,7 @@ export default defineUntypedSchema({
*
* @see https://nitro.unjs.io/config/#routes
*
* @type {typeof import('nitropack')['NitroConfig']['routes']}
* @type {typeof import('nitropack')['NitroConfig']['routeRules']}
* @version 3
*/
routeRules: {},