serve
serve copied to clipboard
How to serve build with homepage property set?
In my package json, if I set the homepage like this:
homepage: "/path"
Is there any way to run serve such that I can run the app from that specified subdomain? Something like localhost:3000/path? Currently, I can only get 404s (as expected) because the app expects to be run at /path
Unfortunately, I cannot simply replace /path with . in package.json like the Create React App docs suggest because I am using pushState on IIS:
If you are not using the HTML5 pushState history API or not using client-side routing at all, it is unnecessary to specify the URL from which your app will be served.