In dev mode, the front-end runs as a standalone dev server, so the API shouldn't try to serve static files for non-api requests. Instead, it should probably serve a JSON error response warning the developer that their request would have been redirected to the front-end in production.
In dev mode, the front-end runs as a standalone dev server, so the API shouldn't try to serve static files for non-api requests. Instead, it should probably serve a JSON error response warning the developer that their request would have been redirected to the front-end in production.