#Static page build on app directory doesn't work
16 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)
Static page build on app directory doesn't work
can you check if the build log shows a circle (static page) or a greek character (dynamic page)?
if it is a dynamic page, you probably need to add generateStaticParams and export const dynamicParams = false to those pages
Hello, thank you for the quick answer, all of them are static pages
The problem still persist.
After build, I removed the .env file, and the "statically build pages" are broken with error not finding the authentication code for the CMS graphql query. Also...
Did you have generateStaticParams and dynamicParams = false set up?
@dim ridge Yes
Well… you have revalidate there which I do believe is part of the issue. When the thing is run again after a revalidation period, it will need the credentials
Try removing it
wait hold on,..
@dim ridge yeah I still get Authentication failed
This is my graphcms client
Yeah then I don’t know, sorry
I wonder if I should create a ticket on github for this?