#Where are the static pages stored (app router)?

5 messages · Page 1 of 1 (latest)

scarlet schooner
#

With pages router, there was a folder with all the static pages in, but I can't find anything similar with app router. The problem I have, is that while Next says it is generating static pages on build, when I view the static page, its behaviour suggests it's calling the database for the data again.

bleak dragonBOT
#

🔎 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)

smoky rock
scarlet schooner
#

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]

smoky rock