We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 472ed6c commit ef68d7dCopy full SHA for ef68d7d
1 file changed
vercel.json
@@ -2,12 +2,9 @@
2
"version": 2,
3
"buildCommand": "npm run build:mf:vercel",
4
"outputDirectory": "dist-vercel",
5
- "routes": [
6
- { "handle": "filesystem" },
7
-
8
- { "src": "/projectA(/.*)?$", "dest": "/projectA/index.html" },
9
- { "src": "/projectB(/.*)?$", "dest": "/projectB/index.html" },
10
11
- { "src": "/(.*)", "dest": "/index.html" }
+ "rewrites": [
+ { "source": "/projectA/:path((?!.*\\.[a-z0-9]+$).*)", "destination": "/projectA/index.html" },
+ { "source": "/projectB/:path((?!.*\\.[a-z0-9]+$).*)", "destination": "/projectB/index.html" },
+ { "source": "/:path((?!projectA|projectB)(?!.*\\.[a-z0-9]+$).*)", "destination": "/index.html" }
12
]
13
}
0 commit comments