Chi (@john_chii) header
Chi (@john_chii) profile picture

software designer

Joined October 2025
Photo by Chi (@john_chii)Photo by Chi (@john_chii)Photo by Chi (@john_chii)Photo by Chi (@john_chii)Photo by Chi (@john_chii)Photo by Chi (@john_chii)
So I Successfully Set Up Offline Database
5
AI can build you a full landing page in 10 seconds. Ask it to secure one function in a real app, and it starts guessing. Here's the exact line where AI stops and engineering starts.
5
29
This is genuinely good news if you're learning to code right now. The syntax was never the moat. Understanding systems is. Keep building real things, not just prompts. There's still a lot of room in this industry for people who can reason about it. #nextjs #100daysofcode
12
That's the pattern. AI is great at: → boilerplate → syntax → "make me a UI" It's weak at: → knowing what "authorized" means in YOUR system → modeling relationships between your own tables → the assumptions no one wrote down anywhere.
8
Same story a few lines later. AI can write "sort and select." It doesn't know your ordering logic depends on the column, or why that matters for your UI.
7
This one query is doing something AI can't infer on its own: It's checking that the column ACTUALLY belongs to the board being passed in, not just that the column exists. Skip that, and any logged-in user could write data into someone else's board.
4
This is a server action from a job-tracker app I'm building. Create a job application, attach it to a board + column. Simple, right? AI would happily generate this in one shot.
15
I'm building a report card generator with Next.js 15/16, and I added route protection so unauthenticated users can't reach /dashboard:
11
13
Takeaway for the post: when a function "does nothing" despite correct logic, don't just review the code, review whether the framework is even calling it. File location and naming conventions are invisible failure points that produce no error message, just silence.
3
That's the business case in one line: gatekeeping at the proxy layer isn't just about UX polish, it's what keeps unauthorized users from ever touching paid features, private data, or admin routes, regardless of what a client bypasses.
2
A boundary that's actually enforced at the network edge, where an unauthenticated request never reaches protected logic at all.
2
For a real product, that's the difference between: A page that looks protected (e.g. a client-side check that flashes the dashboard for a frame before redirecting), and…
2
Why this matters, not just as a bug fix This isn't a cosmetic rename. proxy.ts runs before any route or page renders — before your dashboard, your API routes, even static assets get served.
1
Fix: moved proxy.ts to the root. Immediately started intercepting requests as expected.
1
In Next.js 16, middleware.ts was renamed to proxy.ts, and it has to live at the project root to be picked up as the framework's request-interception layer. Nested inside lib/, Next.js never registers it, it's just an unused file that happens to export a function.
1
Checked where the file actually lived. proxy.ts was sitting inside lib/, not at the project root.
1
That reframed the problem. If the logic is sound but has zero effect, the function likely isn't being invoked. That points away from application logic and toward file location/convention.
1
Re-read the logic first. Before touching imports or config, I re-checked the actual conditions, was isDashboardPage matching correctly, was session?.user the right check. Logic held up. So the bug wasn't in what the code did, it was in whether the code ran at all
1
Straightforward gatekeeper logic: check the path, check the session, redirect if there's no user. But nothing was happening — unauthenticated requests sailed right into the dashboard.
2