Get the latest tech news

Next.js is infuriating


Hey, it's finally happened. I've decided to write a blog post.

handle - This function runs every time the SvelteKit server receives a request [...] This allows you to modify response headers or bodies, or bypass SvelteKit entirely (for implementing routes programmatically, for example).locals - To add custom data to the request, which is passed to handlers in+server.js and server load functions, populate the event.locals object, as shown below. I've made it a sport to search the issue tracker/discussion for problems I'm currently facing and bet on how many years it takes to even get a response from a Next.js dev. Why make a distinction between code running on client and server and then not give me any tools to take advantage of that?

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Next.js

Next.js

Related news:

News photo

Show HN: My OSS P2P file transfer tool for learning Next.js (as a C++ dev)

News photo

Instrumenting Next.js with runtime secret injection

News photo

We fell out of love with Next.js and back in love with Ruby on Rails