Next.js Discord

Discord Forum
second one disapers after seconds","dateCreated":"2023-11-26T10:26:16.000Z","answerCount":5,"author":{"@type":"Person","name":"Bluefake"},"suggestedAnswer":{"@type":"Answer","text":"manifest have weird caching policy, try in incognito mode.also check your output html in browser it can dissapear for some reason from code.","url":"https://nextjs-forum.com/post/1178280558204309586#message-1178300112653537292","dateCreated":"2023-11-26T11:43:59.000Z","author":{"@type":"Person","name":"Toyger"}}}}

Manifest is only recognised for seconds

Unanswered
Bluefake posted this in #help-forum
Open in Discord
I'm trying to make the primeReact Template which works with nextjs in to a pwa and after the expot i could generate a out folder with a index.html in this folder i generated an servicWorker which works ig but the problem ist the manfiest I genereated is only recognised for seconds in the browser I dont know what elso to do can anyone help?

when i do the lighthousetest it says the link is missing but i have an link
<head>
<meta charSet="utf-8"/>
<link rel="icon" href=/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#000000"/>
<meta name="description" content="Web site created using create-react-app"/>
<link rel="manifest" href="/manifest.json"/>
<link rel="apple-touch-icon" href="/logo192.png"/>
<script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script>
</head>
second one disapers after seconds

5 Replies

Toyger
manifest have weird caching policy, try in incognito mode.
also check your output html in browser it can dissapear for some reason from code.
Ok but how can i add it then? How works the incognito mode?
i tried but as u can see it appears here but under the first point manifest it wont be recognised
@Bluefake i tried but as u can see it appears here but under the first point manifest it wont be recognised
Toyger
at least start_url look like invalid one, you better put here some domain, try to check your manifest with online validators and maybe they'll provide some feedback
well that didn't really changed something i try it with the validatory but still thx for the help appreciate it