Bringing React Components to AI
12:41
Vercel Ship 2024
0:36
2 ай бұрын
AI Integrations for Vercel
4:25
3 ай бұрын
Build an AI app in 5 minutes!
7:46
How Core Web Vitals affect SEO
15:22
How Vercel builds Vercel
15:15
3 ай бұрын
Environments on Vercel
11:34
3 ай бұрын
Deploying Next.js to Vercel
6:22
3 ай бұрын
Next.js as a Platform (TJ Kohli)
7:23
Пікірлер
@shivashukla7894
@shivashukla7894 12 сағат бұрын
why I am unable to see chache HIT or skip. I have added this in next config logging: { fetches: { fullUrl: true, } }
@mrjester
@mrjester 19 сағат бұрын
f
@tommycallsuback
@tommycallsuback Күн бұрын
can we do "stale while revalidate" without using react query? (With Next 14, RSC). I want my routes dynamic but when user goes to route, he initially should see stale cache of his previous visit to the route during the same session. Suspense loading should be only shown in the first visit to route.
@zwill8882
@zwill8882 3 күн бұрын
Y'all are an incredibly impressive team and Lee is doing a great job explaining all of it.
@anupamsagar7925
@anupamsagar7925 3 күн бұрын
how to make route.js in new app roouter i am not using pages router
@devJefferson
@devJefferson 3 күн бұрын
Bro failed the 5 minutes 😄, But still the best video 👍
@PUTTEKOOL
@PUTTEKOOL 5 күн бұрын
I suppose the first Date.now() value comes from the server, gnarly inception 😄
@relaxchannelforyour
@relaxchannelforyour 5 күн бұрын
Вообще не помогло
@ShaneCrenshaw
@ShaneCrenshaw 5 күн бұрын
How can I do this with Vertex AI instead of Google AI?
@en_kratia
@en_kratia 5 күн бұрын
Use cookies() === bye bye SSG?
@abdulhadijafari7718
@abdulhadijafari7718 6 күн бұрын
Route Handlers in app router are confusing for me, I am not quite understanding what is it for. can you make videos on that
@henriquematias1986
@henriquematias1986 6 күн бұрын
Regarding "Calling Route Handlers from Server Components" I think the idea here is that calling the function directly will mean that you end up with 1 function on the server component to call the data directly ( bypass API route ) and another one on React-Query ( or SWR ) to call the API and basically end up doing two different "getData" functions, one for server and one for client, which can up mismatched / confusing / harder to maintain ?
@paulhetherington3854
@paulhetherington3854 7 күн бұрын
Ex -- Oriental women only -- personal choice! port -- personnel - received daily orders - for that activity! Jap 7th fleet! I.e. US NAVY <<< Jap mask! Will be punished!
@paulhetherington3854
@paulhetherington3854 7 күн бұрын
/krch frk sfr'' || td' 4'fxz'' < v2''vk4'' , 8'' Rr'' < cntr LN'' + abv below/ /dfz skub below cntr~tmp chutz frs rkn abv : + mtsub + harr below/ /mch rv(2''tvkf'') mtsub + harr(RBZ') by: frk sfr || td~tmp dstalz/ /tran wn eml~tmp brkdn build frkz~cntnt <body tmp arch> authority/ /LN'' abv~cmz u personnel ++ abv~tmp buildz mtsub || RBZ' + frk dar vw/
@karanpunjabi3077
@karanpunjabi3077 7 күн бұрын
Dumb Question: With all these server actions, route handlers, etc. I'm confused with just one question: Can we use "useEffect" hook on client side to fetch data from an api like we used to do for SPAs in React?
@_rhythmsaha
@_rhythmsaha 5 күн бұрын
First, it's important to understand Vercel's main business model. They have made Next.js free and open-source, not generating direct revenue from the library itself. Instead, their primary revenue stream comes from their hosting and serverless offerings. The recent updates to Next.js, emphasizing server components and fetching data directly from the server, are designed to encourage developers to utilize Vercel's hosting and serverless platform. By promoting this approach, Vercel aims to increase adoption of their paid services and generate more revenue from developers leveraging their CPU runtime and infrastructure. While the App Router in Next.js is a compelling feature, the default behavior of rendering components on the server raises concerns, particularly for small-scale applications. Server-side rendering can lead to inefficient use of CPU resources, as even simple components are rendered on the server, potentially resulting in increased costs and performance issues, especially for those on low-budget or free hosting plans. Personally, I prefer to separate concerns and utilize dedicated backend frameworks like Django or Express for API development, as they are more scalable and better suited for this purpose. Attempting to fetch data directly from the server using Next.js can introduce unnecessary complexity and latency, as the request must first reach the Vercel server, which then proxies or duplicates the request to the actual backend API before returning the response. This additional hop can lead to decreased performance. For applications with an existing backend API hosted elsewhere, I recommend leveraging client-side data fetching, as it streamlines the process and avoids the overhead of server-side data fetching through Vercel's infrastructure. However, it's crucial to ensure that the backend API is properly secured, regardless of the data fetching approach used.
@saumya8407
@saumya8407 8 күн бұрын
The vercel V0 is incredible and it will save a lot of time on developing large and complex applications.
@TheAyushSomani
@TheAyushSomani 9 күн бұрын
Since when Channing Tatum become a developer? btw loved the presentation, James.
@INTRPOLPolice
@INTRPOLPolice 9 күн бұрын
Awesome ❤🎉
@Racine14
@Racine14 10 күн бұрын
Can you talk about hydration? Up to now, I am very confused about this error.
@nikb3713
@nikb3713 13 күн бұрын
I spent 5 days and still couldn't figure out how to build a UI of catalog page for example. I have catalog data that I want to request directly from my db which make my page a server component. I also want to have filters on top of that page which are client component bc they need to use react hooks. So far I figured out how to do it by making all my page a client component and requesting my data via proxy router that requests data from my db. Is it correct approach or is there still a way to combine those two logics in one server component without using proxy router? In old pages routing I would do it with getServerSideProps, get my db data directly and then use filters in the jsx with all useStates I need and data as a props. But now it's all so confusing...
@timooothy1234
@timooothy1234 14 күн бұрын
Is it out to be used??
@Fargoth95
@Fargoth95 14 күн бұрын
I still get a 404 not found in the website preview whenever I try to deploy. It's just an index.html and a folder of images. Anyone know what I'm doing wrong? I also added trying a vercel.json that another youtuber recommended but it didnt work.
@ajsimwork8887
@ajsimwork8887 14 күн бұрын
I don't understand where getData() is coming from for the first example, nor do I understand why localhost:3000/api brought up the data JSON data for him. There are many things that simply aren't explained here. My Next.js seemingly doesn't "work" like the one shown in the tutorial. Not helpful...
@GeniusHawlah
@GeniusHawlah 14 күн бұрын
What about GET in a Client Component, can one still use server actions or route handler is recommended for GET? I tried using actions to fetch in a Client Component and it worked perfectly, but checking through my network tab, I realized it's sending a post request. I curiously checked the docs and using server actions to fetch was not talked about. Can you clarify that please? Thanks for great contents all the time!
15 күн бұрын
how does partial prerendering play with SEO? are the dynamic parts seen by the search engine crawlers?
@CodingBill
@CodingBill 16 күн бұрын
Great video, could you talk about layout components as well ? As far as i know the fetching and caching behavior is a bit different.
@dzienisz
@dzienisz 16 күн бұрын
She is the best!
@MichaelRoussel
@MichaelRoussel 17 күн бұрын
6:11 I'm pretty sure he said "I just want some pussy"
@pamphilemkp
@pamphilemkp 17 күн бұрын
great one, I picked big commerce with nextjs 14 over the remaining vercel platforms, because for some reasons it has almost everything built allowing us (developers) to create faster e-commerce projects for example there are many options for checking out after adding to cart, the client can pick a payment method such us cash on delivery, online payment and so one, I tried Shopify before but I think as for many developers Big Commerce is the best option. big up to Big Commerce.
@hollycow8171
@hollycow8171 17 күн бұрын
hi how can i use Country Restriction in Next.js? Does Vercel provide any inbuilt solution?
@vatansrivastava7279
@vatansrivastava7279 18 күн бұрын
Need a tutorial on this
@farzadali7434
@farzadali7434 18 күн бұрын
Excellent delivery!
@leeanucha
@leeanucha 18 күн бұрын
The fact that google calls it core web vitals is hilarious. it's a joke
@brennang02
@brennang02 19 күн бұрын
When your seeing the cache hit at 06:30 is that in a development mode. All i seem to get is Cache missed reason: (auto cache) and i cannot work out why.
@seuntaiwo8735
@seuntaiwo8735 20 күн бұрын
I don't seem to get the first point. can anyone explain?
@SashankAryal
@SashankAryal 21 күн бұрын
So I can use sever actions for data fetching? The docs are not clear on that.
@syedazeemjaved
@syedazeemjaved 21 күн бұрын
Great job in the first part of the video to highlight that caching does not work (as usual) when we are on a dev server, I remember that this got me scratching heads for quite sometime when I started with the App Router.
@Skillthrive
@Skillthrive 22 күн бұрын
Revalidating data in try/catch still gets me. 🥴
@Steve-nd2wj
@Steve-nd2wj 23 күн бұрын
Can anyone know why he doesn't use `useEffect()` when he fetches from an API? I thought it's common practice to use it so you don't get unexpected behavior?
@JShunk
@JShunk 23 күн бұрын
If I have a website that can pull and push data from a MongoDB server and another separate website that just pulls the data from the server how do I get the second website to update during production and know that new data has been added? It works great on a development server cause there is not caching but my only option right now is to rebuild and push the production app everytime the database is modified to get the most up to date information because without it I can see it just hits nextjs-cache that never updates. It is so frustruitng cause there is not way to even add a way to refresh the cache every hour or something.
@JShunk
@JShunk 23 күн бұрын
Here is what the API looks like atm: export const GET = async (req: Request, res: NextResponse) => { try { await connectDB(); const post = await prisma.post.findMany(); return NextResponse.json({message: "Data fetched successfully", post}, {status: 200}) } catch (err) { return NextResponse.json({message: "Error fetching data", err}, {status: 500}) } finally{ await disconnectDB(); } };
@BrandonClapp
@BrandonClapp 25 күн бұрын
Have to use a webhook to invalidate the cache so that my database query executes and returns new data when an external source updates my data? Wow how did something so simple get so complex? Defaulting to static pre-rendering even though my server component had a db query in it was really surprising. At least with getServerSideProps and getStaticProps you knew how your page was going to be built, I would like more control over how pages get rendered and have it decoupled from the caching mechanism. Forcing this caching in app router adds so much more complexity and makes simple things like issuing a db query way more complicated than they need to be. Caching needs to be an opt-in feature instead of something that requires using an unstable API to bypass.
@rmo613
@rmo613 26 күн бұрын
Thanks so much for this great tutorial Simple, clear and concise! Looking forward to seeing a sequel where you integrate reading from docs
@kewlking
@kewlking 27 күн бұрын
I need glasses
@joshuarain9802
@joshuarain9802 27 күн бұрын
After I deploy successfully, it says 404: NOT_FOUND, it does see the HTML file, please help : (
@Denice.67
@Denice.67 20 күн бұрын
i also need help regarding this please
@Fargoth95
@Fargoth95 14 күн бұрын
you ever figure it out?
@Denice.67
@Denice.67 13 күн бұрын
@@Fargoth95 no bro still stuck
@AngeloCarlotto
@AngeloCarlotto 27 күн бұрын
Lydia @theavocoder is the best
@bun_bon_bon_1204
@bun_bon_bon_1204 27 күн бұрын
thank you so much
@InternetTips_bb
@InternetTips_bb 28 күн бұрын
The development of NextJs is just super confusing. Seeing a video like this makes it super clear. It's just a lot of "we've added some custom magic here, ah and this part is also just some custom magic, ah and this part is custom magic ...". I've been doing react for years and I have to watch and read everything 5x before things start to make sense. What's the big win to be had by adding all this complexity? Marginally more control compared to the 'pages' router? I really applaud everyone who is trying to make sense of all this complexity ... I'm just shaking my head over this ...
@appscastle
@appscastle 29 күн бұрын
This guy should keep posting videos, the examples and the way he explain things are just amazing
@oramaboemmanuel473
@oramaboemmanuel473 29 күн бұрын
Awesome stuff❤‍🔥❤‍🔥❤‍🔥
@in4moon
@in4moon 29 күн бұрын
too bad logging from 6:33 works only in dev build