From 818dc626cf2ef1e707c2d68986b8b7655d29327a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 17 Oct 2023 09:55:03 +0100 Subject: [PATCH] docs: fix other issues with `routeRules` example --- docs/1.getting-started/8.server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 // ... } })