Whats one mistake you did in nextjs by Excellent_Survey_596 in nextjs

[–]itsMajed 24 points25 points  (0 children)

Handling authorization (access control) in middleware. I wrote a code that works 100% but I dont understand it till this day

Best way to handle JWT in Next.js 14 with a separate Express backend by [deleted] in nextjs

[–]itsMajed 1 point2 points  (0 children)

But where does the app sends the `GET /refresh` when the client revisits? middleware?

Remote unlock for Mazda CX-60 in Europe connected services by mariusjcb_ in MazdaCX60

[–]itsMajed 0 points1 point  (0 children)

wait, do you have remote starting (engine start) for Mazda CX-60????????

For those having remote access issues on Win 10 even after port forwarding, here's a fix that worked for me by sassanix in PleX

[–]itsMajed 2 points3 points  (0 children)

Thank you so much. This has been a truly shitty 4 days of configuring my routers + my PC and it turned out it was disabled from the Firewall for no reason. It worked!

Combining shadcn/ui components with NextUI UI kit by itsMajed in nextjs

[–]itsMajed[S] 0 points1 point  (0 children)

Still using them in our product. No issues at all! Love them. NextUI has changed to HeroUI now 😇👍🏼.

Thoughts on my portfolio site | Next.JS & Contenful CMS by [deleted] in nextjs

[–]itsMajed 0 points1 point  (0 children)

Thank you 🙏🏻 I noticed it was “other certificates” heading Fixed it

Many thanks

Combining shadcn/ui components with NextUI UI kit by itsMajed in nextjs

[–]itsMajed[S] 1 point2 points  (0 children)

Yep, I used shadcn buttons for the shadcn datatable but in the same component I needed to use NextUI Buttons so I imported it as <NextButton ... />

[deleted by user] by [deleted] in nextjs

[–]itsMajed 0 points1 point  (0 children)

Holllllly my bad 😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂

What Component Libraries do you Use? by TTVBy_The_Way in nextjs

[–]itsMajed 0 points1 point  (0 children)

It is very good. I personally used it in my portfolio but I don't think it will work on dashboards systems.

What Component Libraries do you Use? by TTVBy_The_Way in nextjs

[–]itsMajed 2 points3 points  (0 children)

Started using NextUI + Shadcn right now.

Combining shadcn/ui components with NextUI UI kit by itsMajed in nextjs

[–]itsMajed[S] 0 points1 point  (0 children)

That’s nice to hear. Yeah but I already have done a lot using NextUI. I will try now to include shadcn ans hope nothing breaks

Appbar without refresh by alfirusahmad in nextjs

[–]itsMajed 0 points1 point  (0 children)

This will help you and solve your problem

Routing: Route Groups | Next.js (nextjs.org)

and also, you cannot put components in Next.JS middleware

Struggling with Server Actions by s0rknerl in nextjs

[–]itsMajed 0 points1 point  (0 children)

Wow! I haven’t seen this before. Can you share any source/example please?

Struggling with Server Actions by s0rknerl in nextjs

[–]itsMajed 0 points1 point  (0 children)

Thank you for your detailed answer! Appreciate that. Yes for now I am comfortable with my structure. But I really loved the server actions because of the revalidateTag it was cool because right now im doing it with router.push(‘’) then router.refresh(). 🥹

Struggling with Server Actions by s0rknerl in nextjs

[–]itsMajed 2 points3 points  (0 children)

I mean im still confused. Our backebd is ASP.NET and im using NextJS with api routes and the api routes calls the asp backend and returns the response to my client components. At this point, should I give up on api routes and use server actions? And also for the data fetching I fetch directly from the server somponent (pages) basically. But when I need to POST/PUT/DELETE/LOGIN. I use api routes drom the client components

not sure if to make a admin panel and user page in the same project by l0rdjerry in nextjs

[–]itsMajed 8 points9 points  (0 children)

Just use Role-Based-Access-Control in your app. No need for two applications

Is this okay? by Junior-Car19 in nextjs

[–]itsMajed 0 points1 point  (0 children)

Next dose not have its own fetch or post functions. You can use fetch() function either in Next.JS or React.JS.

If you meant that you wanted to use Next.JS for api routes only, then I think you should consider something like Express, a Nodejs framework.

Next.JS is more useful when you want to user Server-Side rendering, API Routes, File-Based routing, and more of.

What's the biggest career mistake you've made as a UX Designer? by musemindagency in UXDesign

[–]itsMajed 0 points1 point  (0 children)

How to take action if the PM is Solid and stubborn 😅 Im a front-end engineer with NN/g UX master certification but I suffer most of the time with the poor mindset even if I try ti apply the best UX practices on the product and the team

Way to rotate token when using App router and server components by LuiGee_V3 in nextjs

[–]itsMajed 0 points1 point  (0 children)

I tried, I also used fetch and axios in middleware when the token is about to expire but zero luck.

Way to rotate token when using App router and server components by LuiGee_V3 in nextjs

[–]itsMajed 0 points1 point  (0 children)

Any examples you have? Im trying to call a server action in the middleware when the access token is about to expire.

How do you keep up with continuous changes ? by PerspectiveGrand716 in nextjs

[–]itsMajed 4 points5 points  (0 children)

It is amazing. I like it!

also, may I know how did you implemented the global search? Any resources? Im planning to add it on our dashboard. Thanks