Dynamic routes with static pages
I'm building a site which is composed of a static html landing page at "website.com/" and a React app at "website.com/{anything here}" which reads the path to dictate its content with react-router. Is there a simple way with pages to serve a static subpage (the react app) with a wildcard (without a worker)? I know there's a worker solution but I'm curious if there's a feature for this within basic pages
1 Reply
Asking here because I can't find anything in the docs for how pages routing works for static sites
Ok this is possible by setting the react SPA as 404.html (lol), but still curious if there's a better approach