How do I exclude a path (/images) from single page app rewrite?
问题 I have a react app and have the usual rewrite rule in firebase hosting: "rewrites": [ { "source": "**", "destination": "/index.html" } ] I also have a separate /images directory with images I don't want to be rewritten. How do I exclude the /images directory from the rewrite? 回答1: I'm a bit late but I found this question while searching for a similar problem. Use this rewrites rule : "rewrites": [ { "source": "!/images/**", "destination": "/index.html" } ] The key is that "source" (as a lot