From 76e5d997504254df51bc6c9c251a0f2314ce4221 Mon Sep 17 00:00:00 2001 From: tangly Date: Wed, 23 Nov 2022 18:54:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=AA=E9=9D=99=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/next.config.js b/next.config.js index 7c8627f1..106e6aea 100644 --- a/next.config.js +++ b/next.config.js @@ -16,6 +16,14 @@ module.exports = withBundleAnalyzer({ 'images.unsplash.com' ] }, + async rewrites() { + return [ + { + source: '/:path*.html', + destination: '/:path*' + } + ] + }, async headers() { return [ {