pass all static requests, but rewrite the api/html requests
ImHype opened this issue · 2 comments
ImHype commented
I have some requests, just like:
/page-a
/page-b
/static/xxx/a.aaa.js
/static/xxx/b.bbb.js
page-a
andpage-b
responsepublic/index.html
./static/xxx/a.aaa.js
responsepublic/static/xxx/a.aaa.js
/static/xxx/b.bbb.js
responsepublic/static/xxx/b.bbb.js
FossPrime commented
Negative lookahead is your friend
rewrites": [{
"source": "/((?!api\/.*).*)",
"destination": "/index.html"
}]
ImHype commented
ok. i see