Skip to content

Commit bc88d26

Browse files
authored
Merge pull request #1560 from mars-protocol/develop
v2.10.3
2 parents 1724a76 + edb9bf8 commit bc88d26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

next.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ const nextConfig = {
5757
},
5858
async rewrites() {
5959
return [
60+
// Rewrite frontend routes for non-bot user agents (excluding API routes)
6061
{
61-
source: '/:path*',
62+
source: '/((?!api|_next|favicon).*)',
6263
destination: '/',
6364
has: [
6465
{

0 commit comments

Comments
 (0)