Blog
// Notes on engineering, architecture, and product delivery
Optimizely for nye utviklere
Ganske raskt innså jeg hvor stabilt og gjennomtenkt Optimizely faktisk er. Rammeverket tilbyr etablerte mønstre som sikrer forutsigbar kvalitet. Følger du disse, så fungerer det. Slik er det ikke alltid i JavaScript-økosystemet, hvor valgfriheten…
I Built an Open-Source MH370 Flight Path Analysis Tool
I'm not a researcher. I'm just a developer who got a bit too interested one Saturday with this case and wanted to understand why the plane still hasn't been found after three major search operations. So I built a tool to explore the public data…
How to run Windows 11 on Mac Apple silicon for free using UTM
Hopefully you don't need to run windows ever, but.. in the case you do need it her is a quick guide. Running Parrallels works fine but it costs and when you meet obstacles or limitations with virtualization it hurts even more knowing you are paying…
Optimizely for nye utviklere
Ganske raskt innså jeg hvor stabilt og gjennomtenkt Optimizely faktisk er. Rammeverket tilbyr etablerte mønstre som sikrer forutsigbar kvalitet. Følger du disse, så fungerer det. Slik er det ikke alltid i JavaScript-økosystemet, hvor valgfriheten…
Optimizing Block-Based Content Rendering in Next.js with Headless CMS
When we have built content-heavy websites with Next.js and a headless CMS (Sanity, in our case), one common challenge in all of the projects is rendering dynamic content blocks without bloating the website with JavaScript. Here's a scalable pattern…
Handling domain specific locale in next.js
When we deployed https://inmeta.no we decided to add a swedish (.se) page but we wanted to completely divide them when it comes to content. This meant we would not be doing the traditional /[locale]/...content also called i18n routing. Turned out…
Event listener hook for react
Events can be very hard to work with in react so i made a type safe hook that simplifies the process. The last thing i want is to download a whole hook library just for one hook so the simplest thing is to add it yourself. Usage:
How to only deploy on spesific branches with Vercel
I found that its was not straight forward to configure Vercel to only deploy on the main branch so here is a guide and i hope it saves you some time. Note that in this project i am using Next.js but it should work with most frameworks. First we…