Moved to a new domainHello to anyone that might reach this website! Just want to let you know that I've changed the place where I publish and build new things. You can find things I'm up to on apisurf.dev. Cheers!May 4 · 1 min readapisurfer.com
My first thoughts on Next.js 13 and the new app routerThere are two good articles that touch on some of the concerns and annoyances I also share, but I'll try to cover some of my views about it. I had a chance to use Next.js 13 for a few weeks and noticed that some things make my job a lot simpler, whil...Jan 13, 2024 · 5 min readapisurfer.com
JS Date constructor timezone oddityFor a long time, I only did Date manipulation in JS via some date library that wrapped over the native Date object. There were always a lot of missing features on the native Date. But for some time now I've been listening to how date libraries are ra...Jan 10, 2024 · 4 min readapisurfer.com
Testing complex flag conditions and ensuring complete case coverageRecently I stumbled upon an interesting test case where I needed to cover many possibilities and make sure everything continues to work as intended in the future. I had 7 boolean flags that needed to be used to toggle an app functionality. It's a bit...Aug 25, 2023 · 3 min readapisurfer.com
Minimal example of file upload using Next.js app routerSome old methods of accessing uploaded file contents inside a Next.js route handler don't work anymore or at least not in a way many tutorials explain it. E.g. many outdated online examples use page router which has route handlers that receive differ...Aug 19, 2023 · 2 min readapisurfer.com