Moving from NextJS to SvelteKit

Published on

I wanted to freshen up my personal website and blog. I used the redesign to switch from NextJS to SvelteKit.

There really wasn’t much to the switch:

  • Create a new SvelteKit project with pnpm create svelte@latest frako.dev
  • Move existing assets from /public to /static
  • Copy relevant meta tags from /pages/_document.tsx to /src/app.html
  • Copy blog content (Markdown files with frontmatter) and utility code
  • Create new design (I did this one from scratch, so I didn’t have to copy anything over)