diff --git a/docs/1.getting-started/8.server.md b/docs/1.getting-started/8.server.md index 73ae229e1c..a0a3163e86 100644 --- a/docs/1.getting-started/8.server.md +++ b/docs/1.getting-started/8.server.md @@ -67,8 +67,8 @@ Nitro has a powerful feature called `routeRules` which allows you to define a se export default defineNuxtConfig({ routeRules: { '/': { prerender: true }, // Generated at build time for SEO purpose - '/api/*': { cache: { maxAge: 60 * 60 } } // Cached for 1 hour - '/old-page': { redirect: { to: '/new-page', status: 302 } } // Redirection to avoid 404 + '/api/*': { cache: { maxAge: 60 * 60 } }, // Cached for 1 hour + '/old-page': { redirect: { to: '/new-page', statusCode: 302 } } // Redirection to avoid 404 // ... } })