Skip to content

Commit 008e5f5

Browse files
fix: add basePath: false to redirect to prevent double prefixing
1 parent dce8b5a commit 008e5f5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

next.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ const nextConfig: NextConfig = {
99
basePath,
1010
assetPrefix: "/demo-assets",
1111
redirects: async () => [
12-
{ source: "/", destination: basePath, permanent: false },
12+
{
13+
source: "/",
14+
destination: basePath,
15+
permanent: false,
16+
basePath: false,
17+
},
1318
],
1419
}
1520
: {}),

0 commit comments

Comments
 (0)