diff --git a/next.config.ts b/next.config.ts index 86242231..ddda7c3a 100644 --- a/next.config.ts +++ b/next.config.ts @@ -29,16 +29,31 @@ const config: NextConfig = { destination: '/docs/getting-started', permanent: true }, + { + source: '/:locale/docs', + destination: '/:locale/docs/getting-started', + permanent: true + }, { source: '/blog', destination: '/blog/swr-v1', permanent: true }, + { + source: '/:locale/blog', + destination: '/:locale/blog/swr-v1', + permanent: true + }, { source: '/examples', destination: '/examples/basic', permanent: true }, + { + source: '/:locale/examples', + destination: '/:locale/examples/basic', + permanent: true + }, { source: '/fr-FR/:path*',