How to spot performance issues in nextjs13 app dir
Unanswered
Bartholomeas posted this in #help-forum
Hello, i have simple ecommerce shop in nextjs13 but i think it takes too much space + static pages are rendered as a server for some reason.. Can i somehow spot why it weight is that big and what causes that?
4 Replies
Can you point out what paths are static but are being set to dynamic?
If those pages are supposed to be static but are being turned into dynamic then its one of three things:
1) Its a dynamic path
2) Its a Route Handler
3) It uses a dynamic function(either in the page or the layout).
Dynamic functions are functions like header() btw
1) Its a dynamic path
2) Its a Route Handler
3) It uses a dynamic function(either in the page or the layout).
Dynamic functions are functions like header() btw
@Clown If those pages are supposed to be static but are being turned into dynamic then its one of three things:
1) Its a dynamic path
2) Its a Route Handler
3) It uses a dynamic function(either in the page or the layout).
Dynamic functions are functions like **header()** btw
Hmm. <Script/> or <Suspense/> tags arent kind off "dynamic" functions?
I have few providers like context of elements, but it get {children}, so it shouldnt make them clientrendered or something like that...
I have few providers like context of elements, but it get {children}, so it shouldnt make them clientrendered or something like that...
Because i dont see anything suspicious :/