Reputation: 398
My Setup
Problem:
I need to set the 404 page to the index.html so Vue can take over the routing.
Currently if I deep link to a route in Vue I get this:
404 Not Found nginx/1.17.9
Windows AppService plans support Default Documents but Linux doesn't (you can't combine Windows and Linux on a given AppServicePlan) Static Websites has a routes.json approach for this (I don't want to use static websites, which is different from "static websites runtime in AppService")
Ideas on the easiest/lightest way to handle this?
Upvotes: 1
Views: 1008
Reputation: 22082
Go to Configuration
->StartupCommand
: pm2 serve /home/site/wwwroot --no-daemon --spa
on portal.
For more details, Pls refer my answer in related post.
Successful deployment still leads to default page
Upvotes: 1