-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't I modify the href in the manifest file? #184
Comments
Are you changing the base URL at runtime? Pwa needs base at build time, you can use the |
Thank you for your response. app : { ... pwa : { I tried to apply the solution you gave me, but it still doesn't seem to find it.. If you go to the distributed site and check the head href="/gbmanifest.webmanifest" It's written like this. If you change this directly to href="/gb/manifest.webmanifest" in the developer tool, an installation icon will be created in the address window What's the problem... |
can you try with |
Anyway, I'll try to add support for dynamic base url for nuxt via custom client (dev and build) |
Oh, as you said, base: '/gb' is written ink rel="manifest" href="/gb/manifest.webmanifest" Thank you so much. |
The baseUrl on my website is '/gb'
Deploying through nginx.
I installed @vite-pwa/nuxt and created a manifest in the pwa option of nuxt.config.ts.
And I added the component to the app.vue.
If you look at the developer tool on the site you distributed
You can see that it is inserted into the head as shown.
Naturally, the browser is unable to find the manifest file...
I'm going to put it on the head of nuxt.config.ts' app option
When filled in, the manifest file is located well on the distributed site.
When using VitePwaManifest, is there an option that matches the same as baseUrl?
Or is it something I can't find?
I wish I could modify the path of href.
Please help me :[
The text was updated successfully, but these errors were encountered: