I am using basepath in next JS Application but deploying the Application on server I am not using any subdomain, instead I am replacing base path with empty string to access the pages / assets (this is my project requirement). While running the application on browser the index.html is cached within the defined based path on next JS (ex:start-url:http://localhost:4001 as /base-path which is resolving index.html ). When I try to run my application without base-path it's not working on offline mode.
Hi,
I am using basepath in next JS Application but deploying the Application on server I am not using any subdomain, instead I am replacing base path with empty string to access the pages / assets (this is my project requirement). While running the application on browser the index.html is cached within the defined based path on next JS (ex:start-url:http://localhost:4001 as /base-path which is resolving index.html ). When I try to run my application without base-path it's not working on offline mode.
My next and PWA Version:
My server code to replace base path: