From 0fcba9a410855c92681ce93055e2de728da97f8e Mon Sep 17 00:00:00 2001 From: Oleksandr Hrab Date: Wed, 26 Feb 2025 16:19:15 +0200 Subject: [PATCH] fix: redirect loop --- next.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index a8ea6bf9..6605ae34 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,6 +7,7 @@ const config = { reactStrictMode: true, output: 'standalone', basePath: '/documentation', + trailingSlash: true, serverExternalPackages: ['oxc-transform'], eslint: { ignoreDuringBuilds: true, @@ -22,6 +23,14 @@ const config = { inlineCss: true, reactCompiler: true, }, + async rewrites() { + return [ + { + source: '/documentation', + destination: '/documentation/', + }, + ]; + }, }; export default withMDX(config);