Closed ai closed 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.
as const
web/scripts/
/index.html
pnpm build
web/
web/nginx.conf
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.
as const
to keep Nano Stores Router types working) and export it.web/scripts/
to generate nginx config to render/index.html
on request according to those patterns.pnpm build
inweb/
.web/nginx.conf
.