Next.js Discord

Discord Forum

Blank Page After Build

Answered
King Rail posted this in #help-forum
Open in Discord
King RailOP
I have a nextjs 13 app with app directory. Everything works fine in localhost development, but when i try to build and start the app it is just blank.
I had an error where it told me the following:
DynamicServerError: Dynamic server usage: cookies.

I found a guide that said that adding:
export const dynamic = 'force-dynamic'
to my layout file should fix it.
It removed my errors, but my page is still blank? There doesn't seem to be any errors (Except eslint screaming at me for dependency array in useEffect) in the client console, or server console.
Does anyone know what is going on?
Answered by King Rail
My ESLint was telling me that i should change the default <head> tag out for the Next alternative, once i changed it back to the normal <head> it fixed my problem.
View full answer

2 Replies

King RailOP
One thing i find weird is that when i build the app, it says something about getServerSideProps, but i am on version 13, so it shouldn't be a thing? Here is an image:
King RailOP
My ESLint was telling me that i should change the default <head> tag out for the Next alternative, once i changed it back to the normal <head> it fixed my problem.
Answer