Joaquín Sánchez
Joaquín Sánchez
we can use `export const prerender = true;` in the index.astro page (ala sveltekit): https://stackblitz.com/edit/withastro-astro-covosb?file=astro.config.mjs,src%2Fpages%2Findex.astro https://docs.astro.build/en/guides/server-side-rendering/#configure-server-or-hybrid
Any SSR page or api calls must be excluded from sw interception via `navigateFallbackDenylist` (array of regex) adding also a custom handler (NetworkFirst or NetworkOnly) for those entries to redirect...
is the `_worker.js` in the output folder (maybe it is there but the adapter doesn't expose that entry when requested)? or maybe it is something generated to build the distro...
workbox-build will traverse the dist folder (any integration: Vite, Remix, SvelteKit, Nuxt...), if the adapter or Astro generating content in the client or server build that's not included in the...
@jlarmstrongiv you can generate the webmanifest using an endpoint (add proper cache headers, dont cache and must-revalidate: max-age with 0 and must-revalidate, check elk.zone for the headers), you will need...
@jlarmstrongiv you can check elk.zone repo: - pwa configuration: https://github.com/elk-zone/elk/blob/main/config/pwa.ts - we manually create 2 webmanifest variants per locale and theme: https://github.com/elk-zone/elk/blob/main/modules/pwa/i18n.ts using i18n json files (all variants are statically...
@jlarmstrongiv here some pwa hints (user and develop) https://docs.elk.zone/pwa Can be found in docs folder in elk repo (nuxt docus)
@ttijl you're using `output: 'server'`, we need at least one html to use it as `fallback`, switching to `output: 'static'` build output contains the `index.html` file (`/`). I don't know...
@ttijl check https://docs.astro.build/en/guides/server-side-rendering/#hybrid-rendering EDIT: adding `export const prerender = true;` to index.astro with `output: 'server'`: 
It works: 