I'm migrating to my own VPS with mongoDB after having used Firebase and Firebase hosting.
When on example.com/example, refreshing the page results in a 404 error.
Vue.js documentation says to include this in the caddy file:
try_files {path} /
This prevents the 404 error, but this breaks the api, I guess I somehow need to exclude example.com/api. Does anyone know if this is the case, and what the syntax is?
Also, side question: example.com/api seems to list my entire mongoDB database. Surely this is not desirable, for various reasons? How can I hide this?