Next.js v15 writes "redundant" .txt files that it didn't need in v12
Answered
Kurilian Bobtail posted this in #help-forum
Kurilian BobtailOP
Hi, i updated a static (next export), old Next v12 websites to v15 and i'm done now but Next.js seems to write some "redundant" .txt server component hydration thing files and i'm not sure if i'm doing something wrong or missing an optimisation.
See attached screenshot (left is v12, right is v15)
See attached screenshot (left is v12, right is v15)
Answered by B33fb0n3
when you using
next export you are indeed loosing some if the nextjs features and maybe even optimisation features. See attached what kind of stuff you loosing:9 Replies
@Kurilian Bobtail Hi, i updated a static (next export), old Next v12 websites to v15 and i'm done now but Next.js seems to write some "redundant" .txt server component hydration thing files and i'm not sure if i'm doing something wrong or missing an optimisation.
See attached screenshot (left is v12, right is v15)
when you using
next export you are indeed loosing some if the nextjs features and maybe even optimisation features. See attached what kind of stuff you loosing:Answer
@B33fb0n3 when you using next export you are indeed loosing some if the nextjs features and maybe even optimisation features. See attached what kind of stuff you loosing:
Kurilian BobtailOP
right, but i used next export with v12 and output: export with v15, and v12 didn't need all those "duplicate" files.
@Kurilian Bobtail right, but i used next export with v12 and output: export with v15, and v12 didn't need all those "duplicate" files.
why do you think it doesn't need it? Maybe the infrastructure how nextjs works under the hood changed to v15
@B33fb0n3 why do you think it doesn't need it? Maybe the infrastructure how nextjs works under the hood changed to v15
Kurilian BobtailOP
yes, but now my exported app is like 30% bigger :/
i just wasn't sure if that's correct or if i'm missing something
or doing something wrong
@Kurilian Bobtail or doing something wrong
if you upgraded your libraries to the newer versions & updated your code correctly, then you did everything right 🙂
@B33fb0n3 if you upgraded your libraries to the newer versions & updated your code correctly, then you did everything right 🙂
Kurilian BobtailOP
ok. thank you :)
happy to help