<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs" -->

---
title: The Golden Switch, or migrating from Gatsby to Astro in...
description: Evil Martians describes migrating evilmartians.com from Gatsby to Astro in two weeks using Claude, after three years of putting it off. Preparation work...
canonical: https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Golden Switch, or migrating from Gatsby to Astro in under 9¾ days—Martian Chronicles, Evil Martians’ team blog | daily.dev
og:description: Evil Martians describes migrating evilmartians.com from Gatsby to Astro in two weeks using Claude, after three years of putting it off. Preparation work...
og:url: https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs
og:image: https://api.daily.dev/og/posts/Cl2NMwTcs.png
og:image:alt: The Golden Switch, or migrating from Gatsby to Astro in under 9¾ days—Martian Chronicles, Evil Martians’ team blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Golden Switch, or migrating from Gatsby to Astro in under 9¾ days—Martian Chronicles, Evil Martians’ team blog

**[Martian Chronicles](https://daily.dev/sources/evilmartians)** · 22 min read · 2 upvotes · 0 comments

## Summary

Evil Martians describes migrating evilmartians.com from Gatsby to Astro in two weeks using Claude, after three years of putting it off. Preparation work (moving images to imgproxy, building a byte-for-byte snapshot test harness, writing a 1,119-line migration plan, decoupling from Gatsby globals) happened over several months while the site stayed on Gatsby, unchanged. The actual framework swap then took eight working days, run as a strangler-fig migration alongside the live Gatsby build. The piece details four bugs that would have shipped under a fully autonomous agent: a CSS cascade order break from the bundler switch, a missing-vs-empty value bug, a performance regression from client-side page transitions that was reverted, and a production-only hydration crash caused by a CloudFront cache policy interacting with Netlify's deploy identifiers. Results: cold builds dropped from 18 to 4 minutes (mostly from the earlier imgproxy switch), dependency count fell from 108 to 86, 15 pnpm audit advisories were resolved, homepage JavaScript dropped 61%, and mobile Lighthouse score rose from 66 to 90. An FAQ section closes out with direct answers on migration timing, LLM limitations, and build speed causes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://evilmartians.com/chronicles/golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days>

## Questions this post answers

### How long does migrating a large site from Gatsby to Astro actually take with an LLM's help?

For a 367-post, 28-route site, the hands-on migration took two weeks (August 3 to August 13), carried out by one engineer working with Claude Code. That figure excludes months of prior preparation (moving images to imgproxy, building a snapshot-test harness, writing a 1,119-line migration plan) that was done part-time from January to July. A manual, unassisted estimate for the same job was two to three months.

_Anyone weighing a stalled framework migration can track real-world timelines like this one on daily.dev._

### Can an LLM safely migrate a production website on its own without human review?

No. In one large migration, four of the most damaging bugs—a CSS cascade order break, confusion between missing and empty field values, a client-side routing performance regression, and a production-only hydration crash from a CDN cache-key mismatch—all produced green builds and passing tests, the only signals an autonomous agent checks. Each was caught only by an engineer who knew the codebase and what kind of failure to look for.

_Developers weighing how much to trust AI agents on production code can follow reports like this on daily.dev._

### What does Gatsby's own image pipeline cost in build time compared to processing images on demand with imgproxy?

Switching image handling from Gatsby's build-time pipeline (gatsby-plugin-image, gatsby-plugin-sharp, gatsby-transformer-sharp) to on-demand processing with imgproxy cut cold production build times from 18 minutes to 4 minutes on a roughly 1,000-page static site. This change was made before any framework swap, while still running on Gatsby, and accounted for nearly all of the build-time improvement rather than the later Astro migration itself.

_Teams optimizing slow static-site builds can compare approaches like this imgproxy switch on daily.dev._

## Similar posts on daily.dev

- [Affordable and Fast Migration](https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl) · Astro · 46 upvotes · 5 comments
- [How I Used AI Agents to Migrate my Entire Site to Astro](https://daily.dev/posts/how-i-used-ai-agents-to-migrate-my-entire-site-to-astro-ba6sfp5qn) · Code with Andrea · 1 upvotes · 0 comments
- [Agents change the math on big bang migrations](https://daily.dev/posts/agents-change-the-math-on-big-bang-migrations-pac5lf3qj) · swizec.com · 35 upvotes · 8 comments
- [Super speed, super quality: lessons from the Aptos Network site launch—Martian Chronicles, Evil Martians’ team blog](https://daily.dev/posts/super-speed-super-quality-lessons-from-the-aptos-network-site-launch-martian-chronicles-evil-mart-kwcgiglqw) · Martian Chronicles · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#claude-code](https://daily.dev/tags/claude-code), [#astro](https://daily.dev/tags/astro), [#gatsby](https://daily.dev/tags/gatsby)

[View this post on daily.dev](https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Golden Switch, or migrating from Gatsby to Astro in under 9¾ days—Martian Chronicles, Evil Martians’ team blog","url":"https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs"},"datePublished":"2026-09-08T16:07:43.813Z","dateModified":"2026-09-13T21:37:33.329Z","description":"Evil Martians describes migrating evilmartians.com from Gatsby to Astro in two weeks using Claude, after three years of putting it off. Preparation work...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4f21d78c06fc7434a33e3a6bc2de7a29?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4f21d78c06fc7434a33e3a6bc2de7a29?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Martian Chronicles","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Martian Chronicles","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6334c9de96a7414ebbf4b7667ba572c5","url":"https://daily.dev/sources/evilmartians"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,claude-code,astro,gatsby","timeRequired":"PT22M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Martian Chronicles","item":"https://daily.dev/sources/evilmartians"},{"@type":"ListItem","position":3,"name":"The Golden Switch, or migrating from Gatsby to Astro in under 9¾ days—Martian Chronicles, Evil Martians’ team blog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs#faq","mainEntity":[{"@type":"Question","name":"How long does migrating a large site from Gatsby to Astro actually take with an LLM's help?","acceptedAnswer":{"@type":"Answer","text":"For a 367-post, 28-route site, the hands-on migration took two weeks (August 3 to August 13), carried out by one engineer working with Claude Code. That figure excludes months of prior preparation (moving images to imgproxy, building a snapshot-test harness, writing a 1,119-line migration plan) that was done part-time from January to July. A manual, unassisted estimate for the same job was two to three months. Anyone weighing a stalled framework migration can track real-world timelines like this one on daily.dev."}},{"@type":"Question","name":"Can an LLM safely migrate a production website on its own without human review?","acceptedAnswer":{"@type":"Answer","text":"No. In one large migration, four of the most damaging bugs—a CSS cascade order break, confusion between missing and empty field values, a client-side routing performance regression, and a production-only hydration crash from a CDN cache-key mismatch—all produced green builds and passing tests, the only signals an autonomous agent checks. Each was caught only by an engineer who knew the codebase and what kind of failure to look for. Developers weighing how much to trust AI agents on production code can follow reports like this on daily.dev."}},{"@type":"Question","name":"What does Gatsby's own image pipeline cost in build time compared to processing images on demand with imgproxy?","acceptedAnswer":{"@type":"Answer","text":"Switching image handling from Gatsby's build-time pipeline (gatsby-plugin-image, gatsby-plugin-sharp, gatsby-transformer-sharp) to on-demand processing with imgproxy cut cold production build times from 18 minutes to 4 minutes on a roughly 1,000-page static site. This change was made before any framework swap, while still running on Gatsby, and accounted for nearly all of the build-time improvement rather than the later Astro migration itself. Teams optimizing slow static-site builds can compare approaches like this imgproxy switch on daily.dev."}}]}
```

