Тёмный

The Problem with Next.js 

Dave Gray
Подписаться 325 тыс.
Просмотров 46 тыс.
50% 1

Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
This tutorial looks at the problem with Next.js and why it probably won't be fixed in a future Next.js release. Is it really a Next.js problem? You decide.
💖 Support me on Patreon ➜ / davegray
⭐ Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: bit.ly/CompNextJSDev
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
🚩 Subscribe ➜ bit.ly/3nGHmNn
📬 Course Updates ➜ courses.davegray.codes/
❓ Questions - Please post them to my Discord ➜ / discord
☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
🔗 My Next.js Videos: • Next.js Tutorials for ...
👇 Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
The Problem with Next.js
(00:00) Intro
(00:08) Welcome
(00:30) The Problem with Next.js
(00:53) Demonstrating the Problem
(02:59) Why the Problem Exists
(04:57) Also Applies to Route Handlers
(05:21) How to Opt-Out of the Default Behavior
(07:52) Final Thoughts
📚 Tutorial References:
🔗 Next.js noStore:nextjs.org/docs/app/api-refer...
Was this tutorial about the problem with Next.js helpful? If so, please share. Let me know your thoughts in the comments.
#nextjs #problem #broken

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 187   
@yanfoo
@yanfoo 5 месяцев назад
Caching should be opt-in, not opt-out. Same thing for env variables which are consumed at build time. We have apps that read from remote configurations when they start, and this created issues because the config is also read at build time. Having static data is great! But the cache control in Next is quite frustrating.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Many agree with this! 🙌
@janglad9136
@janglad9136 5 месяцев назад
Out of interest, how did you solve the issue with the environment variables? Could you solve it by running a pre build script?
@yanfoo
@yanfoo 5 месяцев назад
@@janglad9136 we use the "publicRuntimeConfig" to store these values. For some reason, Next does not transform process.env.* from this file, then we import "next/config" and get the public runtime config from it. With some tweaks, this can even be typed. But it's certainly ugly. Another solution would be to import env variables with a module like env-var.
@jmarbutt23
@jmarbutt23 5 месяцев назад
I think this is also a feature that should be opt-in not opt-out. This issue is compounded by how NextJS overrode fetch for doing caching. In addition that this is an after thought for opting out with the unstable_nostore and the different ways they do the export for forcing dynamic. This also doesn't seem to work consistently. The combinations of these assumptions for caching are what cause a lot of mistakes by new NextJS devs. The lack of tooling for discovering these, lack of global configuration for opting out really does mean it is broken.
@mfcmasterk
@mfcmasterk 5 месяцев назад
Amen to this guy
@iPankBMW
@iPankBMW 5 месяцев назад
+ if you use soft navigation with then it introduces even more "unexpected behaviour for the developer". There is still a 30 second cache you cannot opt out of, even with noStore()
@_singledev
@_singledev 5 месяцев назад
Normally, the code works in the development phase, but gives an error in the production phase. The opposite happens in next.js.
@yehaa00
@yehaa00 5 месяцев назад
Their hot reload thing needs to be fixed
@thatsalot3577
@thatsalot3577 3 месяца назад
@@yehaa00 I once used next 13 with react-icons, it litreally used around 4gb+ ram for no reason and kept constantly crashing, I never feel comfortable using next
@someshkarmakar47
@someshkarmakar47 Месяц назад
@@thatsalot3577 seriously man.. thats an issue, with 16gb ram still dev server sometimes crashs or takes time to render🤧🤧
@hossamawad4880
@hossamawad4880 5 месяцев назад
I was just having a problem related to this topic and your video helped me grasp the concept behind it , leading me to properly understanding and fixing the problem, thanks 🤝
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Glad it helped!
@dylanstephens1222
@dylanstephens1222 5 месяцев назад
Great video. I recently ran into this issue when using the T3 stack. T3 was throwing a DYNAMIC_SERVER_USEAGE error during builds and noStore() solved it. I'll be honest, I didn't understand why it worked, but it did.
@TheBlueDude71
@TheBlueDude71 5 месяцев назад
Only recently found your channel. Amazing tutorials. Thank you.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Welcome aboard! 🎉
@myview7029
@myview7029 4 месяца назад
I have one question when we work in next js and node js then nodejs devloper send token in response then we can get it in client side then how we can protect page in middleware using server side because next js middleware run on server
@ogt1407gabriel
@ogt1407gabriel 5 месяцев назад
i have noticed on nextjs14 when using react query on development on the first time i open the localhost the site has problems with loading the content incoming from react query, to fix i just refresh the page. Luckily on production this doesnt occur
@eneiarestivan
@eneiarestivan 5 месяцев назад
Thank you for sharing!😊
@Santiego
@Santiego 5 месяцев назад
Do anyone know a next.js website that utilizes react server actions and has a crud type response time close to 100 or even 200ms? Would love to see it. Thanks.
@TravinskiyVladislav
@TravinskiyVladislav 5 месяцев назад
Thank you Dave
@yukendhiran8043
@yukendhiran8043 4 месяца назад
I'm getting wierd error that i can't track down , in dev mode is perfect but when I build at generating static page stage I'm getting errors , i started my project with bun when I try to run it with node getting module not supported use common js ... I don't know wtf is happening I'm not building a server here , it's jamstack app and it's fully frontend
@killian9843
@killian9843 5 месяцев назад
Hi Dave! Your videos are absolutely amazing! I am currently digging into secure web protocols, I wonder if you can make a video of how to prevent or mitigate attack on a web application. Thank you.
@Movoid12
@Movoid12 5 месяцев назад
Thank you for the great explanation and sharing!
@jakeunderland5258
@jakeunderland5258 5 месяцев назад
subscribed!! this is some great stuff Dave, thanks for sharing with us!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Welcome!
@allessioyassine3515
@allessioyassine3515 5 месяцев назад
Nice content as always. I just wanted to ask if your next JavaScript course, the one covering version 13, is still suitable considering the recent upgrade to version 14. thanks ^^
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Yes all concepts still apply because it also uses the app router. Do take note of the version I use for each chapter.
@Add-ux4sf
@Add-ux4sf 4 месяца назад
Xxxx
@Add-ux4sf
@Add-ux4sf 4 месяца назад
X is
@roger_that_do_you_copy
@roger_that_do_you_copy 4 месяца назад
Can't explain better than this! Awesome video!
@negativerfan
@negativerfan 5 месяцев назад
What you are trying to say is: NextJs is broken. "It is by design" ~ yeah, by design bad. It is not like this is the only thing that sucks in nextjs.
@Intellicentnet
@Intellicentnet 5 месяцев назад
I also wanted to start my new project in Next14 but i found no documentation to use existing backend api. I want to use my existing nodejs apis and also want to manage authentication using that but i cannot find any article related to frontend only next 14 project.
@kayodeadechinan5928
@kayodeadechinan5928 5 месяцев назад
why would you need an article for that ? If you already have your api, just use it where you would normally call your db stuff in next 14.
@lamhung4899
@lamhung4899 5 месяцев назад
@@kayodeadechinan5928 on other way, How could this section is hided from docs? I'm sure 90% dev don't use Next as API
@Intellicentnet
@Intellicentnet 5 месяцев назад
@@kayodeadechinan5928 Do you mean that i should call my existing apis from nextjs server apis. But wouldn't that make two request for 1 thing. 1st request from frontend to next server api and 2nd request for nextjs server api to My existing apis. As my existing api project is very big so i cannot rewrite those api in nextjs server apis. So i need a way to call them from frontend. And i want to manage its jwt authentication in nextjs
@Michael-Martell
@Michael-Martell 5 месяцев назад
Routing, both Links and programmatic. Also, if you wanna map an array, and return a conditional check on the array, before rendering, but you want to to wrap in an empty container for styling reasons, it needs a key… forcing you to use the div, breaking styling. Also there should be a way to optionally pass state from a layout to the pages that use the layout.
@MrAlao675
@MrAlao675 4 месяца назад
What's the difference between this noStore and revalidatePath?
@raphauy
@raphauy 4 месяца назад
Very helpful, thank you Dave!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 месяца назад
You're welcome!
@yarapolana
@yarapolana 5 месяцев назад
this is why I moved to Remix, you have way more freedom on how you want things to work.
@georgemwaniki
@georgemwaniki 4 месяца назад
Thanks for covering this amazing content as always
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 месяца назад
Glad you enjoy it!
@sujalvanjare06
@sujalvanjare06 5 месяцев назад
Great video, as always. I've also seen many people's comments on Twitter, Reddit, and RU-vid that they are done with the Next.js app router and switching to another framework like Remix, etc. The transition from page router to app router is a big change in Next.js, and it's very great. I think some people are having a hard time switching from page router to app router, and they don't want to invest more time in learning app router and reading the docs, etc. and their biases towards other frameworks
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Good point 🙌
@nazarshvets7501
@nazarshvets7501 5 месяцев назад
If you phrase it in other way - buissneses don't want to spend extra money on maintenance because Vercel thinks it is good to **increase** compute time for their clients pushing RSC - this would make a lot of sense Don't try to break what works fine!
@razorflash__
@razorflash__ 5 месяцев назад
So its SSG without noStore ?? And adding no store it becomes SSR with no caching ?? And if we use the "use-client" its CSR ? Please let me know if this is correct
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
There are a variety of ways to make it dynamic aka SSR. I show some of them including "force-dynamic" route config and noStore. "use client" does indicate client-side rendering, but be aware that the first render of client components also happens on the server.
@razorflash__
@razorflash__ 5 месяцев назад
@@DaveGrayTeachesCode But am I right with the SSG part tho ?? Also if we have to make it ISR, we have to use something related to revalidate ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
@@razorflash__ there's a lot to learn. I've got videos. Check the docs too. You are on the right track.
@razorflash__
@razorflash__ 5 месяцев назад
@@DaveGrayTeachesCode I have seen your ssg, isr vid in next 13, although am yet to see all of it. Thank you 👍
@Beast80K
@Beast80K 4 месяца назад
*Respected Sir,* I'm experiencing a weird problem with API route handlers, my API route gets data from external API (locally hosted using mockoon tool), I'm using *{ next: { revalidate: 60} }* to get fresh data after 60 seconds & also *'force-dynamic'* to prevent it from becoming static during build. External API returns errors like 404, 429, 503 but API route handler responds with cached data & never returns a error, even other errors caught in catch block are ignored. Any suggestions ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 месяца назад
Yes you need to use the force dynamic segment config like I show for server components in this video. A round handler is also a server component.
@Beast80K
@Beast80K 4 месяца назад
@@DaveGrayTeachesCode Yes I did apply 'force-dynamic' & { next: { revalidate: 60} }, but my API route handler never returns error responses, instead it gives cached data(which was 200 status) ignoring external API's error responses (404, 429, 503) . Can anything be done ?
@MonMon-fm6nx
@MonMon-fm6nx 5 месяцев назад
There are really a lot of errors in the next build, and there's no helpful error message. I encountered errors even though I did nothing. I had to recreate my project because, for some reason, every import wasn't working.
@lkda01
@lkda01 4 месяца назад
why you put the dynamic context inside static context and inject the noStore? I would move the dynamic one out of the Page scope 😮
@MouseCodes
@MouseCodes 5 месяцев назад
Extending fetch is a terrible idea too
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Others share this opinion, too.
@kirinyetbrian
@kirinyetbrian 4 месяца назад
this was very helpful
@rastikrastikk2289
@rastikrastikk2289 5 месяцев назад
Thank you
@ankitkumarjat9886
@ankitkumarjat9886 5 месяцев назад
Build videos on remixjs
@vertexcoder
@vertexcoder 5 месяцев назад
I was one of those who always see your videos but never comment or subscribed. Today I subscribed. I like your videos as you tries to show the real-life scenarios through your codes. One humble request. Can you please make a tutorial for nextjs with really complex form handling with array files uploading and designing such API or components. Thank you
@stanislavus
@stanislavus 5 месяцев назад
this is what I call a quality content!
@trafalgarlaw98
@trafalgarlaw98 5 месяцев назад
those who aren't subscribed to your channel are really missing out
@Ivan-wm6gm
@Ivan-wm6gm 5 месяцев назад
Next.js is getting complicated each update and a lot of band aid solution. I'll probably switch to a more stable and non vendor lockin framework like remix or sveltekit
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
It's worth trying them all out and finding what you like best.
@IvanKleshnin
@IvanKleshnin 3 месяца назад
+1 will switch to SvelteKit or SolidStart as any of them becomes stable. Also considered Remix but it's still React and React deserves to be ditched as well ;)
@fakesmile492
@fakesmile492 5 месяцев назад
Very nice
@zyaaco9964
@zyaaco9964 5 месяцев назад
god this saves me alot of headache, thank you, export const dynamic would not work for me at all
@mohammadhammal2440
@mohammadhammal2440 5 месяцев назад
I started using Remix and it’s so cool and much less complicated then NextJs
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Opinions vary but you are not the only one to feel this way for sure.
@devyb-cc
@devyb-cc 4 месяца назад
still waiting for their middleware 🙃
@jerrydsta1056
@jerrydsta1056 5 месяцев назад
thanks for this info.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Glad it was helpful!
@strippd
@strippd 4 месяца назад
Just about to refactor a BIG production app because the devs preferred clean imports but Next doesnt tree shake properly! Talking about 1 minute build time for a page. Using turbo!
@nulI_dev
@nulI_dev 4 месяца назад
I give up with nextjs after dealing with a server action cache bug for the last two days. My app behaves differently on Vercel than the local build, there are countless cache issues open on github for months. It is mind boggling that caching is default. I will try Remix or Svelte for my next app
@Aditya-lc5uk
@Aditya-lc5uk 5 месяцев назад
the moment i learn new framework it gets broken/outdated or there is a better alternative...like why me god 😭😭
@bryanlee5522
@bryanlee5522 5 месяцев назад
next.js is still the go to react framwork and will be for the foreseeable future. its just a clickbait title
@petarp3938
@petarp3938 4 месяца назад
​@@bryanlee5522It is unfortunately
@CCleanerShot
@CCleanerShot 4 месяца назад
@@bryanlee5522 It's not a clickbait title, it's a real issue. Some of the same developers who made React a cluster fuck are literally in NextJS now in important roles. We're gonna see a similar trend with NextJS in the future, despite it currently being a "go-to" solution.
@DavidWTube
@DavidWTube 4 месяца назад
Did you try leveling the bed?
@7doors847
@7doors847 5 месяцев назад
Awesome vid. Next.js doesn’t leave anyone indifferent.
@baiguapi6477
@baiguapi6477 5 месяцев назад
midlleware cant use node runtime is really 。。。。。。。。。。。。。。。。。。。。。。。
@edhahaz
@edhahaz 2 месяца назад
a few things broken with next.js 'use server' = declare action (API) import server-only = use server for this only 'use client' = hydrate
@dopetag
@dopetag 4 месяца назад
Dave, you are always on point. I see that you are not affiliated with any frameworks like other youtube influencers. Thanks again for your unbiased opinion and bringing the issue up. Next.js is good but not perfect.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 месяца назад
I appreciate that!
@lx2222x
@lx2222x 5 месяцев назад
I find it good that it's opt out
@zoki5388
@zoki5388 5 месяцев назад
Vite + react router dom and some state management makes wondeers.
@heyjitendra
@heyjitendra 5 месяцев назад
Use astro and you will get SSR
@zoki5388
@zoki5388 5 месяцев назад
@toparamennoodles9652 numbers speak volume. Next is not as popular as it's hyped on RU-vid. Yes it has nice features but it can be pain to get some things running in production.
@lamhung4899
@lamhung4899 5 месяцев назад
remix ?
@heyjitendra
@heyjitendra 5 месяцев назад
@@lamhung4899 only good thing we have is Remix..I hope it gets RSC. I think we will get it by 4th quater or early 2025 stable support
@petarp3938
@petarp3938 4 месяца назад
​@@heyjitendraVite has SSR too
@jowadev
@jowadev 5 месяцев назад
I understand what you're saying. For more information on why it works this way, I suggest watching this video: 'Next.js App Router Caching: Explained!' I believe realizing a different behavior between 'dev' and 'prod' only at the project build time indicates a lack of investment in reading the official documentation!
@Toulkun
@Toulkun 4 месяца назад
NextJS simplifies many React stuff like routing and giving us ability to use server side middleware's/end-points instead of "external server" like Nodejs but it does complicate other things as well shown in this video and documentation while is great also lacks. I hope Vercel figures these problems out and brings Next to the next level like Google did with Angular or PHP with newest PHP 7+. I choose to use Next thanks to SEO, better peformance compared to React, simplified router, server side components and ofc NextAuth which is great other than that Vercel needs to work on Next more. I still believe for more complex projects, Angular + Springboot or C# is the best.
@shadyheadstash
@shadyheadstash 4 месяца назад
I only tried Next.js a couple of times and could not figure out why dev/production didn't sit right with me. I've settled on Astro and it's a much, much better experience.
@StartupSpells
@StartupSpells 4 месяца назад
nextjs has other issues like using docker in dev on windows needs a polling hack, development is quite slow af, & a host of other issues that don't exist in other frameworks like remix. i have switched over to remix & its been such a breeze compared to the shitshow next.js is. still have 1 next.js app & 1 remix app so the difference is quite astounding. i've heard nuxt is even better but i dont wanna learn vue for now although should be quite easy. vue 3 + pinia + nuxt honestly sounds like a dream but hopefully remix & react (maybe millions) can & should catch up.
@togya4
@togya4 5 месяцев назад
please dont tell me we will have to leave it after i leaned it
@togya4
@togya4 5 месяцев назад
oh just complete the vid, you are awseome dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Thank you!
@puckwang6850
@puckwang6850 4 месяца назад
I had some work experience with React, and recently I have started learning Next.js a side project. I like the file structure and the dynamic routing, but I the other day got hit pretty hard by trying dockerizing my Next.js App. Apparently, the offical docs says we can use {output : standalone} to reduce the size of the image, which I never succeed after scouting the internet for a day. Comparing my nginx+react 50MB image, I wasn't able to make a running Next.js image with
@kourosh234
@kourosh234 5 месяцев назад
your tutarials are excellent. why don't you make tutorials in Blazor?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Thank you. I do not have experience with Blazor. Claudio Bernasconi has a channel with videos about it.
@johnpaulpineda2476
@johnpaulpineda2476 5 месяцев назад
Last time i watch dave's video, he was just 50k subs. Now he's at whopping 272k subs. I'm so proud of you dave!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Thank you!
@jeetuvakode2654
@jeetuvakode2654 5 месяцев назад
Same with revalidate time works perfectly in dev it caches data for specified time then it fetches new content However it doesn’t work in production it always shows old data even after second reload when revalidate time has passed.
@broskidamn
@broskidamn 5 месяцев назад
Same problem here mate. Do you know how to solve it? Cheers.
@jeetuvakode2654
@jeetuvakode2654 5 месяцев назад
@@broskidamn I tried solving but didn't work so I have opt out cache simply setting revalidate to 0 and it works
@codernerd7076
@codernerd7076 5 месяцев назад
Why not just use remix?!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Many feel the same.
@shopme1122
@shopme1122 4 месяца назад
After nextjs16, nextjs will make us wrap everything inside Suspense so that it doesnot break code in production.
@matiasbojko9652
@matiasbojko9652 5 месяцев назад
Skill issue. The example doesn't resemble real world use case, and it's easy fix by changing directives or even writing stuff in different components.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Yeah I don't like to make examples complicated. It takes away from the discussion at hand. The example did clearly show what was happening. YMMV
@emgodas
@emgodas 5 месяцев назад
Just write in plain react and you should be good
@igorcastilhos
@igorcastilhos 5 месяцев назад
If John Wick was blonde 😎 Great video, Dave
@mohamedsalimbensalem6118
@mohamedsalimbensalem6118 5 месяцев назад
it will work if u use "use client"
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
The timestamp example will work, but that is missing the point. The topic here is how dev mode and production are different.
@shs4293
@shs4293 5 месяцев назад
Such a shame that they couldn't fix this big issue.
@codefinity
@codefinity 2 месяца назад
It's not broken. It's a different perspective with its own reasoning. Broken is a strong word.
@snehangshubiswas2700
@snehangshubiswas2700 5 месяцев назад
By far the most frustrating part of nextjs has to be the slow & sluggish dev server. Its just unbearably slow. I just really hope turbopack arrives soon. BTW awesome content as always. Thanks Dave.
@A03L
@A03L 5 месяцев назад
It got so much faster
@amrkhaledk60
@amrkhaledk60 5 месяцев назад
I still think that caching should be opt-in behaviour 🙃
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Many share this opinion!
@neneodonkor
@neneodonkor 4 месяца назад
That's why I switched to VueJS.
@FzsHotDogInDonut
@FzsHotDogInDonut 5 месяцев назад
just use remix
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Many of the comments agree with you.
@Topsquadjapan
@Topsquadjapan 4 месяца назад
Thanks dad
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 месяца назад
Tell your mom hi
@willyhorizont8672
@willyhorizont8672 5 месяцев назад
this nextjs things are overwhelming for me T_T
@kimayapanash8998
@kimayapanash8998 5 месяцев назад
Whats the secret to the prince charming hair bro
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Being committed to grow it while you can lol
@shadowflame7788
@shadowflame7788 5 месяцев назад
vue >>> react
@hanesmitter1469
@hanesmitter1469 4 месяца назад
Not sure if backend development is this hacky
@DanteMishima
@DanteMishima 5 месяцев назад
I'm in a much better space since I stopped using nextjs
@zaabimahdi
@zaabimahdi 5 месяцев назад
What do you use instead?
@user-wl3ts1fy7f
@user-wl3ts1fy7f 5 месяцев назад
It's like the baby out of the oven gets less care 😂
@kumargupta7149
@kumargupta7149 5 месяцев назад
Awesome ❤
@amazekhashaa7309
@amazekhashaa7309 4 месяца назад
Use vite with nextui. No need nextjs all way
@vorant94
@vorant94 5 месяцев назад
Is it only me who thinks that calling statically generated pages “cache” is a bad idea to begin with?
@user-xz8bp5eb4d
@user-xz8bp5eb4d 5 месяцев назад
With this content I will give you 1 like and 1 sub
@dzhaniivanov5837
@dzhaniivanov5837 4 месяца назад
youtube algorithm 🚀
@itsthesteve
@itsthesteve 5 месяцев назад
I've never used next, but there are so, so many complaints about caching. Seems like a big oversight
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Many feel the same way
@nazarshvets7501
@nazarshvets7501 5 месяцев назад
ngl you had me until that lowercase `page` function
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
haha, you can name it anything you want. The file needs to be named page though.
@sandorturanszky2401
@sandorturanszky2401 4 месяца назад
It's not a problem. The problem is when you don't know the tool you are using.
@MrJeszam
@MrJeszam 5 месяцев назад
It's not broken. It's a feature. /s
@xxXAsuraXxx
@xxXAsuraXxx 5 месяцев назад
Everything about Next js is wrong, Starting with using React as foundations xD
@chad_giga6934
@chad_giga6934 5 месяцев назад
Basically skill issue
@samuelvishesh
@samuelvishesh 5 месяцев назад
Skill issue, not NextJS issue.
@11WicToR11
@11WicToR11 5 месяцев назад
if you wanna spare 10 minutes of your life: "next caches during production build unless you tell it not to do that as clearly said in documentation"
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
This is missing a few things but it is hard to sum up in one sentence. Others may want to know why it does what it does, the reason for the static content, where to find the build reports, and why other devs feel this way.
@11WicToR11
@11WicToR11 5 месяцев назад
@@DaveGrayTeachesCode i might have sounded too harsh there, sorry for that ...i m sure your video has value to your viewers ..i just get triggered by these video titles where its sounds like something interesting and then its something like this
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
@@11WicToR11 thanks for the reply. What is interesting to one may not be to another. You can tell from the various comments.
@heyjitendra
@heyjitendra 5 месяцев назад
I was wrong.... Middleware works with node.js...Tested with 14.1 on Hetzner Ubuntu ARM VM Original Comment: (this is wrong) Why don't middlewares works with nodejs??? This makes self hosting difficult
@o_glethorpe
@o_glethorpe 5 месяцев назад
Why do you think? thats what you get when You work with a framework created by a hosting company.
@heyjitendra
@heyjitendra 5 месяцев назад
Ya enough of it. Switching to Astro@@o_glethorpe
@everythingisfine9988
@everythingisfine9988 4 месяца назад
​@@o_glethorpe vendor lock-in at it's finest
@rand0mtv660
@rand0mtv660 4 месяца назад
What do you mean? I run multiple Next.js apps self hosted and never had problem with next.js middleware. I don't run it on Vercel or any specialized provider. Just in a VM running with Node.js.
@heyjitendra
@heyjitendra 4 месяца назад
update: just hosted it and middlewares works fine...Need more testing from my side..... I have corrected my comment@@rand0mtv660
@mfcmasterk
@mfcmasterk 5 месяцев назад
Please get a haircut….. im so not used to it lol
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Nope.
@nazarshvets7501
@nazarshvets7501 5 месяцев назад
IMO nextjs app router should only be different from pages router by nested pages(layouts and grouping) resolution Rest of features they got only distract and harm devs day-to-day job We aren't building static websites with server components. We are building dynamic apps. Stop making php with wordpress with this BS
@cat-.-
@cat-.- 4 месяца назад
What a total mess
@popuguytheparrot_
@popuguytheparrot_ 5 месяцев назад
This is not a NextJS problem, it's a waterfall query and dependency propagation problem. Next.js and React tried to solve this by using a cache, so don't overreact to this feature. Instead, be better informed.
@SarFirraEdits
@SarFirraEdits 5 месяцев назад
Oh so sad people starting to become like a ROBOT and dedicating there whole life building a useless thing called WEBSITE looking at the computer screen for hours straining their eyes.... they should ESCAPE THE MATRIX INSTEAD 😢😢😢😢😢
@maanasmahato8790
@maanasmahato8790 5 месяцев назад
breh
@SweepAndZone
@SweepAndZone 5 месяцев назад
Bro watched Andrew tate once lol
@sujalvanjare06
@sujalvanjare06 5 месяцев назад
@@SweepAndZone for real
@samydjemai927
@samydjemai927 5 месяцев назад
An he said that while using...you guessed it... a WEBSITE !
@nazarshvets7501
@nazarshvets7501 5 месяцев назад
@@samydjemai927 Its an app. Not a website. Not a blog. Its an app
@DrsHWolfenstein
@DrsHWolfenstein 4 месяца назад
"Should be finished in just a second" lol, it's taking ages.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 месяца назад
A testament to disappearing attention spans. 😆
Далее
Next.js Reports tutorial with Microsoft Excel
18:19
Просмотров 13 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Best exercises to lose weight ! 😱
00:19
Просмотров 4,3 млн
Java Array vs ArrayList
3:42
Просмотров 52
Java Vector vs ArrayList
3:03
Просмотров 24
How Did I Not Know This TypeScript Trick Earlier??!
9:11
Theo Browne: Next.js is a backend framework
11:44
Просмотров 153 тыс.
Next.js 15 Ruins Caching Even More
13:56
Просмотров 41 тыс.
Why I'm Using Express Instead of NextJS
5:23
Просмотров 105 тыс.
They made React great again?
4:11
Просмотров 1 млн