From b3f1184b3bd3a07b05b3f835a9176153ca034f7d Mon Sep 17 00:00:00 2001 From: Debian Dev4 Date: Wed, 24 Sep 2025 16:27:59 +0000 Subject: [PATCH] fix(next): enforce trailingSlash and redirect /lecoffre -> /lecoffre/; asset path stability --- next.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/next.config.js b/next.config.js index 7b1aaa64..34561c22 100644 --- a/next.config.js +++ b/next.config.js @@ -5,6 +5,17 @@ const nextConfig = { output: 'standalone', basePath: '/lecoffre', assetPrefix: '/lecoffre', + trailingSlash: true, + async redirects() { + return [ + { + source: '/lecoffre', + destination: '/lecoffre/', + permanent: false, + basePath: false, + }, + ]; + }, typescript: { ignoreBuildErrors: true, },