#Where are the static pages stored (app router)?
5 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
When you using „force-static“ to make sure they are statically rendered, keep in mind, that you also need to add „generateStaticParams“ to generate them during build time.
When you done both the files will be in the .next folder in the folder „static“
yes, using - export const dynamic = "force-static";
when it builds, you can see it doing generateStaticParams for all the pages, but then nothing in the static folder, see attachment.
The following should be static??
├ ● /sites/[...slugs] 1.56 kB 1.07 MB
├ ├ /sites/myapp/blog
├ ├ /sites/myapp
├ ├ /sites/myapp/services/technical-consulting
├ └ [+614 more paths]
sometimes nextjs builds these pages also with static json and more files than just a static html, css and js. So check other folders as well and look for some json files, that were statically generated