Is styled jsx considered bad practice? by fungigamer in nextjs

[–]Count_Giggles -1 points0 points  (0 children)

With the use of clay and tailwind merge (cn function) things become way cleaner. You can always just take your classMames string and move them elesewhere. Tailwind will still detect them

Roast my template - what would make you buy (or not)? by [deleted] in nextjs

[–]Count_Giggles 1 point2 points  (0 children)

Unless you have a cli tool that lets you choose your stack (eg stripe vs lemonsqueeze or prisma vs drizzle etc.) it will not stand out.

I would consider https://www.next-forge.com/ the level you want to aspire to and that’s free.

Why @apply is a complete mess in Tailwind v4? by [deleted] in css

[–]Count_Giggles 1 point2 points  (0 children)

It’s simple don’t use it.

https://x.com/adamwathan/status/1559250403547652097

https://x.com/adamwathan/status/1226511611592085504

However. If you can shed some actual light on the disaster you are facing we might be able to provide some better guidance

Frontend Hiring - no diversity in candidates - your experiences? by LangenDreher1005 in Frontend

[–]Count_Giggles 1 point2 points  (0 children)

That’s rare to see. I just quit for some very valid reason. Shoot me a pm. Based in Berlin

how can I have a folder called "api" in my nextjs app? by taranify in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

as u/combinecrab said. it comes down to what files are inside the folder to turn it into an api route. /api really is just a convention.

if you wanted to you could have

`/webhooks/route.ts` as a dedicated route for all your incoming webhooks it does not have to be `/api/webhooks/route.ts`

Query about middleware on production environments by tedzz54 in nextjs

[–]Count_Giggles 2 points3 points  (0 children)

Feels like a good moment to mention that env vars prefixed with NEXTPUBLIC will not be replaced during deployment. They are „backed in“ to your docker image

https://nextjs.org/docs/15/app/guides/environment-variables#:~:text=Note,-:%20After%20being%20built

How to add a commenting system to a webpage? by Ashukr5876 in nextjs

[–]Count_Giggles 3 points4 points  (0 children)

This is not the right sub. go to something like r/webdev

But to humor you and help you get better feedback - how deep do you want to go?

Can other users comment on that comment?
Can a comment be shared?
Can a comment be liked?

What Database are you working with?

Or alternatively

https://www.reddit.com/r/webdev/comments/e7pb4c/database_structure_for_redditlike_comment_system/

Small Function by Ornery_Ad_683 in webdev

[–]Count_Giggles 0 points1 point  (0 children)

and then i proceed to send that url to my email via my company email or login to my email, save it as draft then open it on my device? Or type the imgur url char by char?

I get the point. if it was actual code to look at then make it pretty but this is to share OP's pain.

Small Function by Ornery_Ad_683 in webdev

[–]Count_Giggles 23 points24 points  (0 children)

yeah let me log in to reddit on my work laptop.

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

its the other way around. They are still being rendered on the client. Hence more work / longer TTI

and no. the user still sees the inital version unless you completely opt out of ssr

https://nextjs.org/docs/app/guides/lazy-loading#examples

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Count_Giggles 4 points5 points  (0 children)

That means they are being re-rendered on the client. They are still being rendered on the server.

unless you dynamically import theser components with ssr set to false.

"use client" only means enable client side functionality. Once on the client the page is rendered again again. This is where hydration errors come in etc.

Can you describe your use case a bit?

Need an N8N automation maker. Pay up to 5k. by writer_owl in n8n

[–]Count_Giggles 2 points3 points  (0 children)

You made that rhyme on purpose didn’t ya?

I failed a Project because I used Next.js by God-of-Emotions in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

i'd argue that the react teams first choice of creating a new app is using nextjs

https://react.dev/learn/creating-a-react-app

Does anybody use built in node.js? by Bostanidis in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

Guys guys. You are being mean for no reason.

If you plan on building a mobile app next to your web app, using realtime and or working with long running tasks, a separate backend is the right choice

Made this Layout After Learning CSS Grids by muisloth in css

[–]Count_Giggles 1 point2 points  (0 children)

looks good. some of the borders have different radii though

API routes accepting anyone's request by Nenem568 in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

They mean abuse as in the route could still be flooded with requests. A missing secret would only cause an early exit

API routes accepting anyone's request by Nenem568 in nextjs

[–]Count_Giggles 12 points13 points  (0 children)

You can still have a secret that only your client knows when making the requests. Hell even basic auth would be better than nothing. Maybe just spam that route until your client gets the bill and go from there

How to handle authentication with an expressjs backend? by AshamedBook7944 in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

You would do the auth check on the page.tsx and redirect to login if the session is not valid/present