hplush / slowreader

Web app to combine feeds from social networks and RSS and to help read more meaningful and deep content
https://dev.slowreader.app
GNU Affero General Public License v3.0
161 stars 37 forks source link

Return HTML on apps routes #137

Closed ai closed 7 months ago

ai commented 7 months ago

Right now dev.slowreader.app returns app’s HTML only on / route. As the result, after opening some page and refreshing the page you will get 404.

In another hand, I do not want to always return app’s HTML. Server should return proper HTTP status 404 on unknown page request.

  1. Save web client routes patterns to a variable (don’t forget to add as const to keep Nano Stores Router types working) and export it.
  2. Add script in web/scripts/ to generate nginx config to render /index.html on request according to those patterns.
  3. Call that script on pnpm build in web/.
  4. Use that nginx config in web/nginx.conf.
  5. Add script description.
  6. Add note about that to deploy’s docs.