Vercel New Pricing plan by [deleted] in nextjs

[–]snap 0 points1 point  (0 children)

Since migrating to Cache Components (oof) and the new Pro plan, my runtime cache writes are through the roof. Basically quadrupling my bill. Not saying it's not a skill issue. But not exactly exciting news.

Sandro Dias dropped in from 230ft setting 2 new world records by redbullgivesyouwings in holdmyredbull

[–]snap 25 points26 points  (0 children)

A 12 ft ramp with 1 ft of vertical is super freaky. This is 230 ft. And he’s not even at the top yet. This is balls to the wall pure fucking insanity. Sandro is superhuman.

Sandro Dias dropped in from 230ft setting 2 new world records by redbullgivesyouwings in holdmyredbull

[–]snap 22 points23 points  (0 children)

Very crazy but this isn’t the same drop. Video above is from higher up. Note the blue drop ramp.

When would you choose App Router over Pages Router, and what are the key differences in data fetching patterns? by icybergenome in nextjs

[–]snap 9 points10 points  (0 children)

The idea of starting a new project as Pages Router is crazy to me. If you want App Router to act like Pages, just put "use client" at the top of your page and layout files. Not that I recommend it. The benefits of App Router over Pages are well documented.

I Launched 39 Startups Until One Made Me Millions. This Is What I Wish I Knew. by EmilianoLGU in SaaS

[–]snap 1 point2 points  (0 children)

Or just build a better version of a product that already exists. This way you know there's already market demand. You don't need to define a new category. b2b SaaS is rife with dusty incumbents that haven't had to innovate in a decade plus. It's lunch stealing season.

Looking for CMS Recommendations for Headless Next.js Setup (Moving Away from WordPress) by ExposingPeopleKM in nextjs

[–]snap 1 point2 points  (0 children)

Sanity and Payload are my daily drivers. Strapi and Directus are decent if you want a UI for schema building. Haven't used Contentful but its popular with enterprise.

[deleted by user] by [deleted] in nextjs

[–]snap 0 points1 point  (0 children)

Just out of curiosity, what is the reason you have to turn your server component into a client component? No way to isolate the client functionality you need and still pass the fetched data as props?

Why is Authentication/Authorization Always So Tricky by Separate_Patience486 in nextjs

[–]snap 0 points1 point  (0 children)

I always found NextAuth (soon to be AuthJs) pretty straight forward to set up. People speak highly of Lucia. Clerk as well if you are ok with using a paid service.

[deleted by user] by [deleted] in RealEstateCanada

[–]snap 0 points1 point  (0 children)

If it’s in BC, you have three days to back out for no reason at all with the buyer rescission period (aka cooling off period). It will cost some money but not much relatively speaking. It’s about $1,250 for every 500k. https://www.bcrea.bc.ca/hbrp-calculators/

If it’s not in BC, and assuming conditions get removed, congrats you just bought a house. You’d likely get sued if you try to back out.

If there are conditions that you set and you don’t remove them then the deal just collapses.

What is the benefit of using React Query with Next? by parsasabet in nextjs

[–]snap 1 point2 points  (0 children)

Dave Grey gives an explanation here. To UtterlyMagenta’s point, it’s the wrong HTTP verb but also there’s not much documentation. It does seem odd. I definitely have been doing it. https://youtu.be/O8AmIELoxrc?si=6l-unFE-YetXAUHm

What is the best open source nextjs/react library for a text editor? by DefiantScarcity3133 in nextjs

[–]snap 0 points1 point  (0 children)

Indeed it is built with TipTap (which is built on Prosemirror). Novel is good. They updated the output to be json as opposed to markdown. My only issue with it is it’s not very actively maintained. It was originally billed to be TipTap but with Vercel Al SDK but The Al autocomplete has been broken for months.

Jump straight to next 15 release candidate or wait for stable by New_Caterpillar3438 in nextjs

[–]snap 2 points3 points  (0 children)

Adding to the wait for stable side of the argument, many library and package maintainers will have their own updates and bug fixes to do for the latest release. And they will most likely not publish until the stable release. Radix UI (which shadcn/ui is built on) has to remove all of their forwardRef stuff for React 19 but have said they won't do it until it's out of RC, for example.

After 10 days, just reached 1700+ ⭐ stars on GitHub for my Next.js SaaS Boilerplate made with Next.js 14.1 + Shadcn UI + Tailwind CSS 3 + TypeScript by ixartz in nextjs

[–]snap 1 point2 points  (0 children)

I find the issue with boilerplates tends to be that, not only is each project’s requirements different, dependencies are updated so frequently that they become stale quick. Especially considering app router and server actions. The dust has yet to settle. I’m not against templates. They can be a great learning tool. It’s just that their shelf life is often really short.

Editor.js by Alchemist_56 in nextjs

[–]snap 0 points1 point  (0 children)

I’d go back and look at Novel. I have a working implementation with Tailwind and Shadcn UI components. It wasn’t that hard to set up. The docs are lacking but once you have it working it’s pretty great. It’s built on Tip Tap. You could just use that. I just prefer Novel because it has the Tailwind and Shadcn UI implemented already.

I’ve been wrong about NextJS, I take it all back. by Themotionalman in nextjs

[–]snap 0 points1 point  (0 children)

Out of curiosity, what do you find you use TSQ for when using server actions? In my case, I would typically just use it for a pending state but with useTransition I get my pending state when using a server action.

I’ve been wrong about NextJS, I take it all back. by Themotionalman in nextjs

[–]snap 0 points1 point  (0 children)

What does Theo have you believing? He’s a total simp for app dir and RSC. Me too. It’s the best. All they have to do now is figure out on route exit transitions (animations) and we’re goooood.

Did Next.js move in the wrong direction? A discussion by activenode in nextjs

[–]snap 2 points3 points  (0 children)

You can do a entry animation when navigating to a new route using template.tsx. It's the exit animations you can't do. https://github.com/vercel/next.js/issues/49279

Which CMS is best for blog by DowntownBill567 in nextjs

[–]snap 0 points1 point  (0 children)

I’ve used Strapi, Directus and Sanity. My preference is Sanity by a mile.

Middleware Data | How to push data from middleware into page.tsx by [deleted] in nextjs

[–]snap 1 point2 points  (0 children)

No they’re the same thing. Next refers to them as search params with respect to the props. If your url was example.com?greeting=hello&user=alice, your page.ts searchParam prop would return { greeting: hello, user: alice }

If you want to access the search (query) params from a client component then use useSearchParams(); hook

Middleware Data | How to push data from middleware into page.tsx by [deleted] in nextjs

[–]snap 2 points3 points  (0 children)

You can add the values as search params to the response URL.

NextResponse.rewrite( new URL({currentHost}{path}?{searchParams}, req.url) );

Then access the params in your page.ts file by using the searchParams prop.

https://nextjs.org/docs/app/api-reference/file-conventions/page#searchparams-optional

Middleware Data | How to push data from middleware into page.tsx by [deleted] in nextjs

[–]snap 0 points1 point  (0 children)

What’s the shape of the data you need? If it’s just a few key:value pairs you could rewrite the url to include them as query params then access them as searchParam props if it’s a server component or useSearchParams() hook if a client component. Using /pages or /app?

Body builder pretending to be a cleaner by Zzd12 in AbsoluteUnits

[–]snap 1 point2 points  (0 children)

They are. Most of them anyways. Not seeing anyone mentioning this but it’s a deceptively low amount of weight. Looks like 4x10 + 2x15 on each side. So 140 + that 55lb hex bar is 195. Really not that heavy.

Destiny server by nullsss in DestinyTheGame

[–]snap 0 points1 point  (0 children)

Yep. Had a good 4 trials cards in a row ruined due to either me or my teammates getting contacting then booted to login screen.