Confusing logs during the build
Unanswered
Bonga shad posted this in #help-forum
Bonga shadOP
I am getting confused by the logs when I run the build command.
I am using next 14 with app router.
I have 11 pages, some of them are async and fetch data from the external api, rest are default non async.
My build logs say first:
but then below says:
Why would it say generating static pages if then says all are server-rendered on demand?
I am using next 14 with app router.
I have 11 pages, some of them are async and fetch data from the external api, rest are default non async.
My build logs say first:
Generating static pages (0/11) [= ]/users/createbut then below says:
Route (app) Size First Load JS
┌ ƒ / 44.7 kB 132 kB
├ ƒ /_not-found 145 B 87.2 kB
├ ƒ /api/auth/[auth0] 0 B 0 B
├ ƒ /api/gloss 0 B 0 B
├ ƒ /auth/login 4.18 kB 152 kB
├ ƒ /auth/verify-email 145 B 87.2 kB
├ ƒ /clients 3.81 kB 181 kB
├ ƒ /clients/[id] 729 B 197 kB
├ ƒ /clients/add 678 B 197 kB
├ ƒ /users 4.22 kB 182 kB
├ ƒ /users/[id] 747 B 199 kB
└ ƒ /users/create 774 B 199 kB
+ First Load JS shared by all 87.1 kB
├ chunks/23-6c6456072ced46cc.js 31.4 kB
├ chunks/fd9d1056-bfbeafacdddf7a4f.js 53.6 kB
└ other shared chunks (total) 2 kB
Middleware 124 kB
ƒ (Dynamic) server-rendered on demandWhy would it say generating static pages if then says all are server-rendered on demand?
2 Replies
@Bonga shad I am getting confused by the logs when I run the build command.
I am using next 14 with app router.
I have 11 pages, some of them are async and fetch data from the external api, rest are default non async.
My build logs say first:
`Generating static pages (0/11) [= ]/users/create `
but then below says:
`Route (app) Size First Load JS
┌ ƒ / 44.7 kB 132 kB
├ ƒ /_not-found 145 B 87.2 kB
├ ƒ /api/auth/[auth0] 0 B 0 B
├ ƒ /api/gloss 0 B 0 B
├ ƒ /auth/login 4.18 kB 152 kB
├ ƒ /auth/verify-email 145 B 87.2 kB
├ ƒ /clients 3.81 kB 181 kB
├ ƒ /clients/[id] 729 B 197 kB
├ ƒ /clients/add 678 B 197 kB
├ ƒ /users 4.22 kB 182 kB
├ ƒ /users/[id] 747 B 199 kB
└ ƒ /users/create 774 B 199 kB
+ First Load JS shared by all 87.1 kB
├ chunks/23-6c6456072ced46cc.js 31.4 kB
├ chunks/fd9d1056-bfbeafacdddf7a4f.js 53.6 kB
└ other shared chunks (total) 2 kB
Middleware 124 kB
ƒ (Dynamic) server-rendered on demand`
Why would it say generating static pages if then says all are server-rendered on demand?
in the future there will be PPR (Partial Pre Rendering). That means, that everything, that can be static will be pre generated ("Generating static pages (0/11) [= ]/users/create") and everything, that is dynamically, will be streamed
Bonga shadOP
thanks for the reply! I got confused as I have not specifaclly opted in to ppr in next config Does it mean that PPR is no truned on by default?