dreamland
@vite-pwa/nuxt clients.matchAll not working in ServiceWorker with subdomain scope
I have a ServiceWorker that checks if a client is visible.
It works fine on other platforms, but with an installed PWA on iOS the .
It works fine when the scope is a second-level domain, but when the scope is a subdomain the
clients.matchAll
method returns an empty listclients.matchAll
method returns an empty list.
It works Has anybody experienced this?
https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll4 replies
`?raw` import works in vite (`nuxt dev`) but not in rollup (`nuxt generate`)
As described in the title
?raw
works in vite but not in rollup. Simple steps to reproduce:
npx nuxi@latest init raw
add app.css
edit app.vue
npm run dev
works.
npm run generate
results in following error.
I'm currently trying to convince rollup to understand the ?raw
import like vite does using the following, but I'm not sure how, or if that would even work..
8 replies
SPA w/ SEO or SSG + nitro?
i'm creating a SPA and i've opted to use nuxt because of the ease of development (especially for the frontend devs in my team, that automatically get an up to date server when they pull)
my expectation was that the data from
useSeoMeta
from app.vue
would be included in the build even with ssr: false
, but apparently all seo meta data is disregarded in that case (https://stackoverflow.com/questions/74070241/what-is-the-difference-between-ssrfalse-vs-targetstatic-in-nuxtjs)
so i've tried to use SSG and running nitro separately, but i keep running into problems..
i've been reading about it the entire afternoon and evening. it seems like such a basic usecase, but i can't find anything about it. i feel like i'm missing something obvious. any pointers appreciated40 replies