@nextjs 3. If a user isn't authenticated, the middleware can redirect them to a login page without the browser having to reload the entire application.
4. Pre-processes the request, meaning before the request reaches the actual route or API handler.
Thank you @vercel
My 2 cents on @nextjs middleware ;
Is using middleware not like making a request to server?
Answer: Yes, But it is more efficient in certain scenarios.
But How?
1. Edge Runtime
2. Efficiency
3. No Full Page reload
4. Pre-processing request
Continued in thread...
@nextjs 1. Powered by Vercel's Edge Runtime, which runs at the edge, closer to the user, minimizing latency.
2. Middleware runs before the page request is served, which is better than server side page rendering.
Working with @reactjs and @nextjs @gig2hire , I use the following 3 things for structuring components:
Modular: Each part of the UI is broken into separate, reusable components.
Continue in thread...
We’re live for thirdweb’s Startup Program!
We'll be deep diving into Consumer, DeFi, and RWA apps from the builders in this cohort — tune in! 🚀🛠️
https://t.co/n835Z9geSB
Whooooa!!
@gig2hire
is live for voting. Vote for us and become a part of our journey
@GoogleAI#GeminiAI#hackathon We are continuously building our capabilities and will launch our product soon. #BuildwithGemini
https://t.co/brNuIQOYxG
Participated in @Google#GeminiAPI#hackathon
Submitted project, it is a modest first attempt at using #LLMs Waiting for @gig2hire to leverage #AI to revolutonize the freelancer hiring landscape.
https://t.co/ZI1nyvaYAC
Finally resolved a issue @nextjs @gig2hire . Was using #middleware to rewrite a request. Struggled for 12 hours, but yeah resolved the issue finally. The issue was related to setting search params in next js middleware. Please find the solution here -
https://t.co/rQm0kFRqiJ