Mase
Mase
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I definitely slouched back in my chair and was like ... "there ain't no way". I was so close to restarting the whole project XD I've kinda looked into docker. I am still confused as to how it works and why it would benefit me. Is it better than just using one of our vm servers to host the project?
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Sadly I did not
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I was building, I just never had the thing set to production. It just assumed it was set by default or something idk haha.
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I feel like such a noob 😭
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I was watching the new benchmark video theo posted and was like ... oh
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Yeah I was just assuming npm run start was good enough 😭
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Thank you everyone for the replies
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I'm so sorry
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Okay... i feel like an idiot. I was using npm run start. But just didn't have NODE_ENV=production. My app is SUPER snappy now
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I see I see
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Could the self hosting really be the issue?
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
This might be a dumb question, but if I use coolify, does that mean my app will be open to the public?
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Npm dev when I'm testing on my local machine, but im doing npm build -> npm start on my production server I will take a look at a Coolify, thanks!
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I have read that self hosting isn't the greatest, but to keep the server only aseccible on our network, this was the easiest way haha
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I do notice a difference between dev and prod compile times so I'm sure it's doing something different. I just don't understand why the initial compile is so slow.
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I'm self hosting it on a production server
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Did some further testing with other people accessing the site. It seems that it is just the initial server compile that is slow. Once one person access that route, it loads almost instantly for everyone else. Then I restart the server and again the first compile is slow. Fast for everyone else.
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
One thing I've noticed is.. my original component it takes 8s to load The new component with nothing in it takes 3s to load. Still feels quite slow for nothing in it
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
Currently working on this now. Just rebuilding the component tree from the ground up and trying to find out where it slows down
108 replies
TTCTheo's Typesafe Cult
Created by Mase on 10/23/2024 in #questions
Next JS slow initial compile time
I for some reason cannot get axiom to send any logs. I'm not sure if it's due to me not hosting with Vercel, but even in production it's not sending any logs unfortunately
108 replies