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?
Or read this on Hacker News