The Problem with Next.js

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

ความคิดเห็น • 181

  • @yanfoo
    @yanfoo 11 หลายเดือนก่อน +90

    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  11 หลายเดือนก่อน +9

      Many agree with this! 🙌

    • @janglad9136
      @janglad9136 11 หลายเดือนก่อน +2

      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 11 หลายเดือนก่อน

      @@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 11 หลายเดือนก่อน +2

      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 11 หลายเดือนก่อน +1

      Amen to this guy

  • @hossamawad4880
    @hossamawad4880 11 หลายเดือนก่อน +11

    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 🤝

  • @iPankBMW
    @iPankBMW 11 หลายเดือนก่อน +15

    + 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()

  • @TheBlueDude71
    @TheBlueDude71 11 หลายเดือนก่อน +10

    Only recently found your channel. Amazing tutorials. Thank you.

  • @trafalgarlaw98
    @trafalgarlaw98 11 หลายเดือนก่อน +2

    those who aren't subscribed to your channel are really missing out

  • @_singledev
    @_singledev 11 หลายเดือนก่อน +46

    Normally, the code works in the development phase, but gives an error in the production phase. The opposite happens in next.js.

    • @yehaa00
      @yehaa00 11 หลายเดือนก่อน +4

      Their hot reload thing needs to be fixed

    • @thatsalot3577
      @thatsalot3577 10 หลายเดือนก่อน +1

      @@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 8 หลายเดือนก่อน

      @@thatsalot3577 seriously man.. thats an issue, with 16gb ram still dev server sometimes crashs or takes time to render🤧🤧

  • @killian9843
    @killian9843 11 หลายเดือนก่อน +3

    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.

  • @dylanstephens1222
    @dylanstephens1222 11 หลายเดือนก่อน +4

    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.

  • @yarapolana
    @yarapolana 11 หลายเดือนก่อน +2

    this is why I moved to Remix, you have way more freedom on how you want things to work.

  • @dopetag
    @dopetag 10 หลายเดือนก่อน

    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.

  • @roger_that_do_you_copy
    @roger_that_do_you_copy 11 หลายเดือนก่อน +1

    Can't explain better than this! Awesome video!

  • @edhahaz
    @edhahaz 8 หลายเดือนก่อน

    a few things broken with next.js
    'use server' = declare action (API)
    import server-only = use server for this only
    'use client' = hydrate

  • @mohammadhammal2440
    @mohammadhammal2440 11 หลายเดือนก่อน +3

    I started using Remix and it’s so cool and much less complicated then NextJs

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 หลายเดือนก่อน +2

      Opinions vary but you are not the only one to feel this way for sure.

    • @devyb-cc
      @devyb-cc 11 หลายเดือนก่อน

      still waiting for their middleware 🙃

  • @Michael-Martell
    @Michael-Martell 11 หลายเดือนก่อน

    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.

  • @vertexcoder
    @vertexcoder 11 หลายเดือนก่อน

    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

  • @strippd
    @strippd 10 หลายเดือนก่อน

    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!

  • @johnpaulpineda2476
    @johnpaulpineda2476 11 หลายเดือนก่อน +3

    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!

  • @jakeunderland5258
    @jakeunderland5258 11 หลายเดือนก่อน

    subscribed!! this is some great stuff Dave, thanks for sharing with us!

  • @allessioyassine3515
    @allessioyassine3515 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน +1

      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 10 หลายเดือนก่อน

      Xxxx

    • @Add-ux4sf
      @Add-ux4sf 10 หลายเดือนก่อน

      X is

  • @raphauy
    @raphauy 10 หลายเดือนก่อน

    Very helpful, thank you Dave!

  • @georgemwaniki
    @georgemwaniki 10 หลายเดือนก่อน

    Thanks for covering this amazing content as always

  • @lkda01
    @lkda01 10 หลายเดือนก่อน

    why you put the dynamic context inside static context and inject the noStore? I would move the dynamic one out of the Page scope 😮

  • @jowadev
    @jowadev 11 หลายเดือนก่อน +3

    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!

  • @movoid12
    @movoid12 11 หลายเดือนก่อน

    Thank you for the great explanation and sharing!

  • @shadyheadstash
    @shadyheadstash 11 หลายเดือนก่อน

    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.

  • @7doors847
    @7doors847 11 หลายเดือนก่อน +9

    Awesome vid. Next.js doesn’t leave anyone indifferent.

  • @codefinity
    @codefinity 8 หลายเดือนก่อน

    It's not broken. It's a different perspective with its own reasoning. Broken is a strong word.

  • @zyaaco9964
    @zyaaco9964 11 หลายเดือนก่อน

    god this saves me alot of headache, thank you, export const dynamic would not work for me at all

  • @MouseCodes
    @MouseCodes 11 หลายเดือนก่อน +7

    Extending fetch is a terrible idea too

  • @ankitkumarjat9886
    @ankitkumarjat9886 11 หลายเดือนก่อน +6

    Build videos on remixjs

  • @MonMon-fm6nx
    @MonMon-fm6nx 11 หลายเดือนก่อน

    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.

  • @togya4
    @togya4 11 หลายเดือนก่อน +2

    please dont tell me we will have to leave it after i leaned it

    • @togya4
      @togya4 11 หลายเดือนก่อน

      oh just complete the vid, you are awseome dave

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 หลายเดือนก่อน

      Thank you!

  • @Intellicentnet
    @Intellicentnet 11 หลายเดือนก่อน +1

    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 11 หลายเดือนก่อน +1

      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 11 หลายเดือนก่อน

      @@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 11 หลายเดือนก่อน

      @@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

  • @eneiarestivan
    @eneiarestivan 11 หลายเดือนก่อน +1

    Thank you for sharing!😊

  • @DavidWTube
    @DavidWTube 10 หลายเดือนก่อน

    Did you try leveling the bed?

  • @Toulkun
    @Toulkun 11 หลายเดือนก่อน

    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.

  • @shopme1122
    @shopme1122 11 หลายเดือนก่อน

    After nextjs16, nextjs will make us wrap everything inside Suspense so that it doesnot break code in production.

  • @Beast80K
    @Beast80K 10 หลายเดือนก่อน

    *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  10 หลายเดือนก่อน +1

      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 10 หลายเดือนก่อน

      @@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 ?

  • @nulI_dev
    @nulI_dev 11 หลายเดือนก่อน

    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

  • @stanislavus
    @stanislavus 11 หลายเดือนก่อน

    this is what I call a quality content!

  • @myview7029
    @myview7029 11 หลายเดือนก่อน

    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

  • @yukendhiran8043
    @yukendhiran8043 11 หลายเดือนก่อน

    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

  • @MrAlao675
    @MrAlao675 11 หลายเดือนก่อน

    What's the difference between this noStore and revalidatePath?

  • @RandomGuy34-j1u
    @RandomGuy34-j1u 11 หลายเดือนก่อน +3

    the moment i learn new framework it gets broken/outdated or there is a better alternative...like why me god 😭😭

    • @bryanlee5522
      @bryanlee5522 11 หลายเดือนก่อน

      next.js is still the go to react framwork and will be for the foreseeable future. its just a clickbait title

    • @petarp3938
      @petarp3938 11 หลายเดือนก่อน

      ​@@bryanlee5522It is unfortunately

    • @CCleanerShot
      @CCleanerShot 11 หลายเดือนก่อน

      @@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.

  • @StartupSpells
    @StartupSpells 11 หลายเดือนก่อน +1

    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.

  • @jeetuvakode2654
    @jeetuvakode2654 11 หลายเดือนก่อน +2

    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 11 หลายเดือนก่อน

      Same problem here mate. Do you know how to solve it? Cheers.

    • @jeetuvakode2654
      @jeetuvakode2654 11 หลายเดือนก่อน +1

      @@broskidamn I tried solving but didn't work so I have opt out cache simply setting revalidate to 0 and it works

  • @mohamedsalimbensalem6118
    @mohamedsalimbensalem6118 11 หลายเดือนก่อน +1

    it will work if u use "use client"

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 หลายเดือนก่อน +5

      The timestamp example will work, but that is missing the point. The topic here is how dev mode and production are different.

  • @kirinyetbrian
    @kirinyetbrian 11 หลายเดือนก่อน

    this was very helpful

  • @puckwang6850
    @puckwang6850 10 หลายเดือนก่อน

    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

  • @zoki5388
    @zoki5388 11 หลายเดือนก่อน +11

    Vite + react router dom and some state management makes wondeers.

    • @jitxhere
      @jitxhere 11 หลายเดือนก่อน +1

      Use astro and you will get SSR

    • @zoki5388
      @zoki5388 11 หลายเดือนก่อน

      @toparamennoodles9652 numbers speak volume. Next is not as popular as it's hyped on TH-cam. Yes it has nice features but it can be pain to get some things running in production.

    • @lamhung4899
      @lamhung4899 11 หลายเดือนก่อน

      remix ?

    • @jitxhere
      @jitxhere 11 หลายเดือนก่อน

      @@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 11 หลายเดือนก่อน

      ​@@jitxhereVite has SSR too

  • @Ivan-wm6gm
    @Ivan-wm6gm 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน

      It's worth trying them all out and finding what you like best.

    • @IvanKleshnin
      @IvanKleshnin 9 หลายเดือนก่อน

      +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 ;)

  • @TravinskiyVladislav
    @TravinskiyVladislav 11 หลายเดือนก่อน +2

    Thank you Dave

  • @razorflash__
    @razorflash__ 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน +2

      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__ 11 หลายเดือนก่อน

      @@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  11 หลายเดือนก่อน +2

      @@razorflash__ there's a lot to learn. I've got videos. Check the docs too. You are on the right track.

    • @razorflash__
      @razorflash__ 11 หลายเดือนก่อน

      @@DaveGrayTeachesCode I have seen your ssg, isr vid in next 13, although am yet to see all of it. Thank you 👍

  • @matiasbojko9652
    @matiasbojko9652 11 หลายเดือนก่อน +1

    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  11 หลายเดือนก่อน

      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

  • @snehangshubiswas2700
    @snehangshubiswas2700 11 หลายเดือนก่อน +3

    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 11 หลายเดือนก่อน

      It got so much faster

  • @baiguapi6477
    @baiguapi6477 11 หลายเดือนก่อน +2

    midlleware cant use node runtime is really 。。。。。。。。。。。。。。。。。。。。。。。

  • @ogt1407gabriel
    @ogt1407gabriel 11 หลายเดือนก่อน

    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

  • @shs4293
    @shs4293 11 หลายเดือนก่อน

    Such a shame that they couldn't fix this big issue.

  • @codernerd7076
    @codernerd7076 11 หลายเดือนก่อน +1

    Why not just use remix?!

  • @jerrydsta1056
    @jerrydsta1056 11 หลายเดือนก่อน

    thanks for this info.

  • @lx2222x
    @lx2222x 11 หลายเดือนก่อน

    I find it good that it's opt out

  • @Santiego
    @Santiego 11 หลายเดือนก่อน

    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.

  • @kourosh234
    @kourosh234 11 หลายเดือนก่อน

    your tutarials are excellent. why don't you make tutorials in Blazor?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 หลายเดือนก่อน

      Thank you. I do not have experience with Blazor. Claudio Bernasconi has a channel with videos about it.

  • @Topsquadjapan
    @Topsquadjapan 10 หลายเดือนก่อน

    Thanks dad

  • @neneodonkor
    @neneodonkor 11 หลายเดือนก่อน

    That's why I switched to VueJS.

  • @DrsHWolfenstein
    @DrsHWolfenstein 11 หลายเดือนก่อน

    "Should be finished in just a second" lol, it's taking ages.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 หลายเดือนก่อน

      A testament to disappearing attention spans. 😆

  • @igorcastilhos
    @igorcastilhos 11 หลายเดือนก่อน

    If John Wick was blonde 😎 Great video, Dave

  • @DanteMishima
    @DanteMishima 11 หลายเดือนก่อน +1

    I'm in a much better space since I stopped using nextjs

    • @zaabimahdi
      @zaabimahdi 11 หลายเดือนก่อน

      What do you use instead?

  • @amrkhaledk60
    @amrkhaledk60 11 หลายเดือนก่อน

    I still think that caching should be opt-in behaviour 🙃

  • @baldblenderbud
    @baldblenderbud 11 หลายเดือนก่อน

    It's like the baby out of the oven gets less care 😂

  • @emgodas
    @emgodas 11 หลายเดือนก่อน +1

    Just write in plain react and you should be good

  • @sandorturanszky2401
    @sandorturanszky2401 10 หลายเดือนก่อน

    It's not a problem. The problem is when you don't know the tool you are using.

  • @rastikrastikk2289
    @rastikrastikk2289 11 หลายเดือนก่อน

    Thank you

  • @kimayapanash8998
    @kimayapanash8998 11 หลายเดือนก่อน

    Whats the secret to the prince charming hair bro

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 หลายเดือนก่อน +1

      Being committed to grow it while you can lol

  • @vorant94
    @vorant94 11 หลายเดือนก่อน

    Is it only me who thinks that calling statically generated pages “cache” is a bad idea to begin with?

  • @dzhaniivanov5837
    @dzhaniivanov5837 11 หลายเดือนก่อน

    youtube algorithm 🚀

  • @FzsHotDogInDonut
    @FzsHotDogInDonut 11 หลายเดือนก่อน +2

    just use remix

  • @nazarshvets7501
    @nazarshvets7501 11 หลายเดือนก่อน

    ngl you had me until that lowercase `page` function

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  11 หลายเดือนก่อน

      haha, you can name it anything you want. The file needs to be named page though.

  • @willyhorizont8672
    @willyhorizont8672 11 หลายเดือนก่อน

    this nextjs things are overwhelming for me T_T

  • @shadowflame7788
    @shadowflame7788 11 หลายเดือนก่อน +2

    vue >>> react

  • @amazekhashaa7309
    @amazekhashaa7309 11 หลายเดือนก่อน

    Use vite with nextui. No need nextjs all way

  • @itsthesteve
    @itsthesteve 11 หลายเดือนก่อน

    I've never used next, but there are so, so many complaints about caching. Seems like a big oversight

  • @jitxhere
    @jitxhere 11 หลายเดือนก่อน

    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 11 หลายเดือนก่อน +3

      Why do you think? thats what you get when You work with a framework created by a hosting company.

    • @jitxhere
      @jitxhere 11 หลายเดือนก่อน

      Ya enough of it. Switching to Astro@@o_glethorpe

    • @everythingisfine9988
      @everythingisfine9988 11 หลายเดือนก่อน

      ​@@o_glethorpe vendor lock-in at it's finest

    • @rand0mtv660
      @rand0mtv660 11 หลายเดือนก่อน

      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.

    • @jitxhere
      @jitxhere 11 หลายเดือนก่อน

      update: just hosted it and middlewares works fine...Need more testing from my side..... I have corrected my comment@@rand0mtv660

  • @LêQuốcVương-c3y
    @LêQuốcVương-c3y 11 หลายเดือนก่อน

    With this content I will give you 1 like and 1 sub

  • @MrJeszam
    @MrJeszam 11 หลายเดือนก่อน

    It's not broken. It's a feature.
    /s

  • @fakesmile492
    @fakesmile492 11 หลายเดือนก่อน

    Very nice

  • @11WicToR11
    @11WicToR11 11 หลายเดือนก่อน +1

    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  11 หลายเดือนก่อน +1

      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 11 หลายเดือนก่อน

      @@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  11 หลายเดือนก่อน +1

      @@11WicToR11 thanks for the reply. What is interesting to one may not be to another. You can tell from the various comments.

  • @hanesmitter1469
    @hanesmitter1469 11 หลายเดือนก่อน

    Not sure if backend development is this hacky

  • @nazarshvets7501
    @nazarshvets7501 11 หลายเดือนก่อน

    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

  • @samuelvishesh
    @samuelvishesh 11 หลายเดือนก่อน

    Skill issue, not NextJS issue.

  • @chad_giga6934
    @chad_giga6934 11 หลายเดือนก่อน +4

    Basically skill issue

  • @popuguytheparrot_
    @popuguytheparrot_ 11 หลายเดือนก่อน

    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.

  • @mfcmasterk
    @mfcmasterk 11 หลายเดือนก่อน

    Please get a haircut….. im so not used to it lol

  • @cat-.-
    @cat-.- 10 หลายเดือนก่อน

    What a total mess

  • @kumargupta7149
    @kumargupta7149 11 หลายเดือนก่อน

    Awesome ❤

  • @SarFirraEdits
    @SarFirraEdits 11 หลายเดือนก่อน +1

    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 11 หลายเดือนก่อน +6

      breh

    • @SweepAndZone
      @SweepAndZone 11 หลายเดือนก่อน +6

      Bro watched Andrew tate once lol

    • @samydjemai927
      @samydjemai927 11 หลายเดือนก่อน +1

      An he said that while using...you guessed it... a WEBSITE !

    • @nazarshvets7501
      @nazarshvets7501 11 หลายเดือนก่อน

      @@samydjemai927 Its an app. Not a website. Not a blog. Its an app

    • @razorflash__
      @razorflash__ 11 หลายเดือนก่อน

      @@samydjemai927 he could've used the app.