From 475870a4175cb451d906db4f3e2e141d8cbf589c Mon Sep 17 00:00:00 2001 From: Viktor Kuzhelnyi Date: Mon, 5 Dec 2022 22:31:30 +0500 Subject: [PATCH] add: basePath redirect --- next.config.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 8c0df12..00c1b1b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -3,6 +3,16 @@ */ const nextConfig = { basePath: "/admin-one-react-tailwind", + async redirects() { + return [ + { + source: '/', + destination: '/admin-one-react-tailwind', + basePath: false, + permanent: false + } + ] + }, images: { unoptimized: true, remotePatterns: [