Here you will find the source code for my portfolio website Sanan.no
It is created with my Astro + Sanity-CMS + i18n template repo
- Astro Framework: Lightning-fast static and dynamic site generation with a modern developer experience.
- Sanity CMS Integration: Flexible, real-time content management with powerful schema definitions—edit content without redeploying.
- React Support: Use React components seamlessly alongside Astro and other frameworks.
- Automated CI/CD: When code changes it builds a Docker image, pushes it to Docker hub, which is then pulled by Dokploy when the "trigger-deploy" job runs. This is the better setup since it reduces load on your VPS (if you are renting a cheap, low-power vps primarily meant for hosting), speeds up deployments, and avoids long build queues if you were doing the building on the same machine. Read more here
- Cloudflare worker For downloading files securely from a bucket with rate limits.
It is configured for Norwegian (nb) and English(en), with English as the default language.
There is a known bug with Vite and Astro where the Tailwind vite pluging will pull vite v7 while astro still uses v6, creating a type mismatch in the astro config file. We currently work around this issue by pinning vite version to 6.4.1 to get rid of the error until Astro 6 comes out with vite 7 support. It wasn't causing build to fail, was just bothering me.