Secretless access to Azure services in AKS using Token Credentials and managed identity

by Karl Solgård

Phew, that's a mouthful! Working with AKS sometimes is. However, I can assure you that this approach to securing your applications in your Kubernetes cluster is worth it. The advantages to have a secretless solution are many: No secrets are lost in the wild 🐅 The need to send secrets to…

How to auto-generate SVG sprites with webpack and svg-sprite-loader

by Ane Min Garnaas

When developing, there are several benefits to using SVG sprites, but maintaining sprites can quickly become difficult and time-consuming. With Webpack and svg-sprite-loader your sprite will be automatically generated when you bundle your code. What is an SVG sprite?A sprite is a collection of something, ex. images, put into…

Download database + blobs from your Optimizely DXP project

by Tomas Hensrud Gulla

With Optimizely DXP, we as developers do not have direct access to the production environment. If I want to get the database + blobs from the production environment to update my local dev environment - this is how it's done. Export the databaseThe database export can be started from the self-service…

Contentful migrations: Copy content from one entry to another

by Bjarte Aune Olsen

In Contentful, the easiest way to change your content model is through the web app on app.contentful.com. This is pretty straightforward if you are doing basic changes like adding a new text field. However, if you are planning more complex changes, migration scripts are probably the best way…

Multiple queries in Sanity with one request

by Magnus Sigvartsen

Format your groq query to get multiple queries in one request to Sanity.io.…

Personvernvennlig bildeopplasting

by Tomas Hensrud Gulla

Den siste tiden har det vært mye fokus på personvern. Google Analytics er muligens ulovlig, cookies bør ikke brukes uten samtykke, og ting som GDPR og Schrems II har nærmest blitt en del av dagligtalen. Man bør generelt være varsom i sin omgang med personopplysninger!…

Group Sanity fields in tabs

by Tomas Hensrud Gulla

Not too long ago Sanity launched what they call field groups. Field groups are exactly what it sounds like, the option to group a bunch of fields.…

How to set/change port number for a project using IIS Express in Visual Studio

by Henning Sjørbotten

For running projects locally through Visual Studio and IIS Express, your URL will be something like http://localhost:9257/. As a developer, you probably often have many different projects on your machine, and using the same port number on the projects could cause problems. So if this is the case,…

Use NVM to handle different Node versions

by Jørgen Ringstad

If you're like me, and switch a lot between different projects, you've most likely run across problems with Node.js versions when building the frontend. That's a problem we can solve rather easily with NVM. But first things first, what is NVM? NVM (Node Version Manager) is a tool for…

Filtering an array for specific types with GROQ

by Magnus Sigvartsen

In Sanity, you can have arrays that contain different objects. But what if we want to filter out the specific types inside the array when we run a query? A problem I came across was how to map the different Sanity objects to .NET objects based on their type. Disclaimer:…