From ae048b4afa194be955a4a0108df48b9f9aa667ef Mon Sep 17 00:00:00 2001 From: Ali Najmabadi Date: Tue, 13 Aug 2024 15:50:58 +0330 Subject: [PATCH] update next.config.mjs --- liara_nginx.conf | 2 +- next.config.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/liara_nginx.conf b/liara_nginx.conf index eb976d18..4a4801c7 100644 --- a/liara_nginx.conf +++ b/liara_nginx.conf @@ -16,7 +16,7 @@ location = /404.html { # rewrite ^/(.*)/$ /$1 permanent; # } -rewrite ^/(.*)/$ /$1 permanent; +# rewrite ^/(.*)/$ /$1 permanent; location / { try_files $uri $uri/ $uri.html =404; diff --git a/next.config.mjs b/next.config.mjs index 85387bf7..13fddb97 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -8,6 +8,7 @@ const nextConfig = { output: "export", reactStrictMode: true, pageExtensions: ['js', 'jsx', 'md', 'mdx'], + trailingSlash: true, }; export default withMDX(nextConfig); \ No newline at end of file