Menu

#DevtoNextjs

259 posts

Feed·
17 of 259 posts
Creator referrals with Next.js and Supabase: first-touch attribution and one commission per payment
🖼️
0Read More

Creator referrals with Next.js and Supabase: first-touch attribution and one commission per payment

DEV Community: nextjs·ReClaim·about 1 hour ago
#lygwD2qQ
#devtonextjs#devto#dev#fullscreen#slug

A creator referral program sounds like a link and a percentage. Once you build one, it turns into...

15s
The 129 elements that only existed once JavaScript loaded
📰
0Read More

The 129 elements that only existed once JavaScript loaded

DEV Community: nextjs·SAMUELFMEDEIROS·about 1 hour ago
#68RyHhUf
#devtonextjs#devto#dev#javascript#article

The portfolio's production HTML shipped with opacity:0 across 129 tags — the hero, the cards and half the page came to life only after hydration. The framer-motion pattern behind it, the first time it

15s
TestSprite caught three real bugs before I could merge: building AgentPulse for TestSprite Hackathon S4
📰
0Read More

TestSprite caught three real bugs before I could merge: building AgentPulse for TestSprite Hackathon S4

DEV Community: nextjs·Naufal Hafizh·about 1 hour ago
#nqlVeoFT
#devtonextjs#devto#dev#testsprite#preview

TestSprite Hackathon Season 4 had a simple theme: One Week. One Loop. Every PR. Wire TestSprite into...

15s
Deploy succeeded but the live site still shows old content
📰
0Read More

Deploy succeeded but the live site still shows old content

DEV Community: nextjs·Ahmed·about 1 hour ago
#uk3uriSx
#devtonextjs#devto#dev#fullscreen#deployment

The pipeline is green and production serves the old commit. How this happens, a script that catches it, and the headers and ordering that fix it.

15s
Building a Leaderboard for a Game Site with SQLite: 3 Traps I Hit with Concurrent Score Submissions
🖼️
0Read More

Building a Leaderboard for a Game Site with SQLite: 3 Traps I Hit with Concurrent Score Submissions

DEV Community: nextjs·no momo·about 17 hours ago
#7gkT3UFo
#devtonextjs#devto#dev#score#leaderboard

After static JSON couldn't handle scores anymore, I added a Node.js + Express + SQLite backend. On...

15s
Three font files preload on every page of our site, and on five of the six I measured one of them has nothing to render
🖼️
0Read More

Three font files preload on every page of our site, and on five of the six I measured one of them has nothing to render

DEV Community: nextjs·Daniel Pertu·about 17 hours ago
#q7dayA0V
#devtonextjs#devto#dev#font#fullscreen

Our root layout loads three font families. Two of them earn their place on every page. The third is 71 KB of monospace that most pages never put a single character into, and it is preloaded at the highest priority anyway.

15s
Our Sentry config sets one option the SDK has deleted and two more under a key whose own type says it has no effect
🖼️
0Read More

Our Sentry config sets one option the SDK has deleted and two more under a key whose own type says it has no effect

DEV Community: nextjs·Daniel Pertu·about 17 hours ago
#EJ5H84wu
#devtonextjs#devto#dev#sentry#fullscreen

Four lines of @sentry/nextjs build config on a Turbopack project. I checked each one against the installed SDK's types and against the live bundle.…

15s
Our sitemap is 516 URLs and not one of them comes from the database any more
🖼️
0Read More

Our sitemap is 516 URLs and not one of them comes from the database any more

DEV Community: nextjs·Daniel Pertu·about 17 hours ago
#cpLin3Yj
#devtonextjs#devto#dev#sitemap#pages

The sitemap for Munchable used to be a program: a chunked index, dynamic child routes, a custom CDN TTL and about 120 lines of XML. Deleting the product pages turned it back into one function that returns an array.

15s
Our cookie policy names four cookies and three storage keys, and I counted what a browser really holds after one visit
🖼️
0Read More

Our cookie policy names four cookies and three storage keys, and I counted what a browser really holds after one visit

DEV Community: nextjs·Daniel Pertu·about 17 hours ago
#peI7lk8Q
#devtonextjs#devto#dev#cookie#storage

A cookie policy is an inventory of your client-side storage, written once and then left behind by every feature that ships. I diffed ours against the code and against a real browser. The hard claims were all true. The list was not.

15s
Twenty lines of our copy spell out eight conditions, and the one that still says seven is the description Google shows
🖼️
0Read More

Twenty lines of our copy spell out eight conditions, and the one that still says seven is the description Google shows

DEV Community: nextjs·Daniel Pertu·about 17 hours ago
#qPL3LLWq
#devtonextjs#devto#dev#conditions#test

We shipped an eighth condition. The rule set was the easy part. The number was written out in prose in twenty places, one of them a test that was wrong in the same direction as the code.

15s
Three download buttons, no user agent sniffing, and a link that stops working 60 seconds after you click it
🖼️
0Read More

Three download buttons, no user agent sniffing, and a link that stops working 60 seconds after you click it

DEV Community: nextjs·Daniel Pertu·about 17 hours ago
#xqA3oJ9z
#devtonextjs#devto#dev#download#fullscreen

Our installers are 600MB and live in a private R2 bucket. The download page hands out three fixed routes, each of which answers 302 with a presigned URL that expires in a minute, and the object keys carry no version number on purpose.

15s