Joaquín Sánchez
Joaquín Sánchez
The problem, the root web is public, if api is not inside the public folder then sw will not work and workbox-build cannot find that folder
Can you just try to add the api inside the public folder?
I have no access to gh from my desktop now, I Will check it later. Can you send an screenshot with the dist folder structure?
Uhmmm, wait. Do you have the cms api generation as another process? It seems the api generation is running after vite pwa plugin sw generation.
Check src/module.ts L183
Add json to globPatterns. And check file extensions inside nativigation and query folders
Add another entry to globPatterns: `api/**` or `api/*`
I'm very busy at work, I Will try to check cms docs to figure out how we can integrate it properly.
`globPatterns` will be used by `workbox-build` to find the files matching the expression, and so in your case, `globPatterns: ['**/*.{js,css,html,png,svg,ico}'],` will not match json files: if the files included inside...
can you share the url for server preview?