team-genny / genny

0 stars 1 forks source link

Router should only attempt to route to the static front-end build in production #60

Closed fergcb closed 2 months ago

fergcb commented 3 months ago

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.

nmcc1212 commented 3 months ago

how would the API know if it was in 'dev mode' or not