I'm serving my nuxt generated folder behind nginx proxy on a sub url. (https://localhost/preview)
Need to serve sw.js from a subfolder, alternatively need to give it a different name so it can be easily differentiated
by nginx proxy.
I tried with publicPath, but it still puts the sw.js file into the root of the dist folder.
Is there any way of achieving this?
Thank you in advance.