Skip to content

Commit ef68d7d

Browse files
committed
chore: fix vercel.json
1 parent 472ed6c commit ef68d7d

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

vercel.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
"version": 2,
33
"buildCommand": "npm run build:mf:vercel",
44
"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" }
5+
"rewrites": [
6+
{ "source": "/projectA/:path((?!.*\\.[a-z0-9]+$).*)", "destination": "/projectA/index.html" },
7+
{ "source": "/projectB/:path((?!.*\\.[a-z0-9]+$).*)", "destination": "/projectB/index.html" },
8+
{ "source": "/:path((?!projectA|projectB)(?!.*\\.[a-z0-9]+$).*)", "destination": "/index.html" }
129
]
1310
}

0 commit comments

Comments
 (0)