For some reason, i can't use the root path as the public URL to deliver the Routify assets. I need to give a prefix URL to each of the Routify assets. I have tried to change some config in assets/__app.html file. But, the new configuration only work in build mode (production), and not working in development mode using Rollup or Nollup (i think because the both of them has their own servers).
For some reason, i can't use the root path as the public URL to deliver the Routify assets. I need to give a prefix URL to each of the Routify assets. I have tried to change some config in
assets/__app.html
file. But, the new configuration only work in build mode (production), and not working in development mode using Rollup or Nollup (i think because the both of them has their own servers).How do i solve this problem?
Default structure
assets/__app.html
URL
/build/bundle.css
/build/main.js
/404.svg
/__app.html
/index.html
/
- Single Endpoint to handle the whole of Client Application that processed in server side usingtossr
Server
Modified structure
assets/__app.html
URL
/public/build/bundle.css
/public/build/main.js
/public/404.svg
/public/__app.html
/public/index.html
/
- Single Endpoint to handle the whole of Client Application that processed in server side usingtossr
(nothing has changed)Server