I’m trying to deploy an app in which there is an API, and a front SPA. I want the front SPA to be served by fly.io without reaching my own server, for performance reason.
In my fly.toml file:
[[statics]]
guest_path = "/home/myapp/front/dist"
url_prefix = "/"
After deploying, I logged into my VM using SSH and run:
> ls /home/myapp/front/dist
assets index.html
which shows my SPA is built and ready to be served.
However, when I try to access my website, at the root level, I get a 404 error.
What did I get wrong? Thanks!