Replies: 5 comments 5 replies
-
Show us the manifest file. |
Beta Was this translation helpful? Give feedback.
-
I used the one from the documentation here: https://nextjs.org/docs/app/building-your-application/configuring/progressive-web-apps#1-creating-the-web-app-manifest (and added some icons in the described locations)
|
Beta Was this translation helpful? Give feedback.
-
add this export to manifest.ts: `import type { MetadataRoute } from "next"; export const dynamic = "force-static"; export default function manifest(): MetadataRoute.Manifest{....` |
Beta Was this translation helpful? Give feedback.
-
To Fix add to this files if have |
Beta Was this translation helpful? Give feedback.
-
To anyone visiting this for Next v15.2.4^, adding the aforementioned variable to the export const dynamic = 'force-static'; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am trying to build a progressive web application (PWA) for static export. I have tried both NextJS 15.0.3 and canary.
If I create an app using
next-create-app
with the default settings (app router, typescript), and then:output: 'export'
to the configmanifest.ts
file as described hereI get a build error:
As far as I can see from the documentation PWA is supported by static builds - am I missing something?
Thanks for any help!
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions