<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl" -->

---
title: Affordable and Fast Migration | daily.dev
description: Evil Martians, a devtools/cybersecurity consultancy, migrated their 1000+ page corporate site and blog from Gatsby to Astro in nine days using a single...
canonical: https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Affordable and Fast Migration | daily.dev
og:description: Evil Martians, a devtools/cybersecurity consultancy, migrated their 1000+ page corporate site and blog from Gatsby to Astro in nine days using a single...
og:url: https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl
og:image: https://api.daily.dev/og/posts/4apsnn2PL.png
og:image:alt: Affordable and Fast Migration
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.

# Affordable and Fast Migration

**[Astro](https://daily.dev/sources/astro_source)** · 4 min read · 46 upvotes · 5 comments

## Summary

Evil Martians, a devtools/cybersecurity consultancy, migrated their 1000+ page corporate site and blog from Gatsby to Astro in nine days using a single engineer. The move eliminated 17 Gatsby plugins and 4 patched dependencies, replaced the GraphQL data layer with Astro content collections, and ported existing React components without changes. Results: homepage JavaScript fell 61%, mobile Lighthouse scores rose from 66 to 90, and total homepage weight dropped from roughly 2.1 MB to 1.1 MB after adopting islands architecture and deferring the heaviest element (a 437 KB search modal) to first interaction.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://astro.build/case-studies/evil-martians>

## Questions this post answers

### How do I migrate a large Gatsby site to Astro without rewriting my React components?

Astro's first-party React integration allows existing React components to be ported over unchanged, since Astro is framework-agnostic and supports islands architecture. Astro's content collections can replace Gatsby's GraphQL data layer without altering an existing custom content pipeline (such as LiquidJS and JSX transformers), and Astro can be built alongside Gatsby in the same repo so routes migrate incrementally.

_daily.dev surfaces migration writeups like this for teams weighing a move off Gatsby to Astro._

### What performance improvements can I expect from migrating a Gatsby site to Astro's islands architecture?

One migration saw homepage JavaScript drop 61% and mobile Lighthouse scores rise from 66 to 90 after switching to Astro's islands architecture. Total homepage weight fell from about 2.1 MB to 1.1 MB (a 48% reduction), driven largely by deferring a heavy site search modal (saving 437 KB) and dropping Gatsby's GraphQL prefetch behavior, which had pulled 13.6 MB of unused query data ahead of clicks.

_developers benchmarking framework migrations can track these kinds of performance case studies on daily.dev._

### Why would a team drop Gatsby's GraphQL data layer for a static site?

A GraphQL layer sitting in front of a static site can become overkill technical debt: one team found it drove aggressive prefetching that pulled 13.6 MB of unused query results per page, more than six times the page's own weight. Replacing it with Astro's content collections eliminated that prefetch overhead while requiring no changes to the existing custom content pipeline.

_engineers deciding whether to keep or drop a GraphQL layer can follow real-world trade-offs like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@shapeshifta** · 1 upvotes

> I love astro so much :)

**@agustinbarrientos** · 0 upvotes

> I wouldn't have rewritten the React components during a nine-day migration either. How much time went into replacing GraphQL?

**@khevlar** · 0 upvotes

> The bigger lesson is probably: don’t ship heavy features until people actually need them. That 437 KB search modal is a perfect example.

**@llaravell** · 0 upvotes

> This is the future of AI-assisted development: not replacing engineers, but amplifying engineers who understand their systems. Great migration story and a reminder that preparation and testing matter more than the tool itself.

## Similar posts on daily.dev

- [The Golden Switch, or migrating from Gatsby to Astro in under 9¾ days—Martian Chronicles, Evil Martians’ team blog](https://daily.dev/posts/the-golden-switch-or-migrating-from-gatsby-to-astro-in-under-9-days-martian-chronicles-evil-marti-cl2nmwtcs) · Martian Chronicles · 2 upvotes · 0 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
- [Astro vs Next.js: Two Philosophies for Building the Modern Web](https://daily.dev/posts/astro-vs-next-js-two-philosophies-for-building-the-modern-web-nuyffqrn4) · Codemotion · 2 upvotes · 0 comments
- [My blog got popular, and my bandwidth exploded to ~300GB in just 10 days](https://daily.dev/posts/my-blog-got-popular-and-my-bandwidth-exploded-to-300gb-in-just-10-days-nflugkjyl) · Neciu Dan · 1 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#performance](https://daily.dev/tags/performance), [#astro](https://daily.dev/tags/astro), [#gatsby](https://daily.dev/tags/gatsby)

[View this post on daily.dev](https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl)

```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":"Affordable and Fast Migration","url":"https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl"},"datePublished":"2026-09-08T21:17:10.938Z","dateModified":"2026-09-13T19:23:19.325Z","description":"Evil Martians, a devtools/cybersecurity consultancy, migrated their 1000+ page corporate site and blog from Gatsby to Astro in nine days using a single...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7b7a10f63bb91933e4d976f6bcfcf5b7?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7b7a10f63bb91933e4d976f6bcfcf5b7?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Astro","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":"Astro","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f4e5c78441f64e17b064585687d42fc6","url":"https://daily.dev/sources/astro_source"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":46},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":"react,performance,astro,gatsby","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Astro","item":"https://daily.dev/sources/astro_source"},{"@type":"ListItem","position":3,"name":"Affordable and Fast Migration"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl","comment":[{"@type":"Comment","text":"I love astro so much :)","datePublished":"2026-09-09T09:32:32.650Z","url":"https://daily.dev/posts/4apsnn2PL#c-fyikilnCq","author":{"@type":"Person","name":"Thomas Horster","url":"https://daily.dev/shapeshifta","image":"https://lh3.googleusercontent.com/a/ACg8ocKb6L6HT3s9ADrzllxFn2TGtdqVKVTKckrPjNiWqWXXfMQ9Lo2KTQ=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"I wouldn’t have rewritten the React components during a nine-day migration either. How much time went into replacing GraphQL?","datePublished":"2026-09-11T03:24:12.742Z","url":"https://daily.dev/posts/4apsnn2PL#c-6ZCLM2a5M","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}},{"@type":"Comment","text":"The bigger lesson is probably: don’t ship heavy features until people actually need them. That 437 KB search modal is a perfect example.","datePublished":"2026-09-12T10:15:51.073Z","url":"https://daily.dev/posts/4apsnn2PL#c-Z0CL8X8xY","author":{"@type":"Person","name":"Lesley Edinam","url":"https://daily.dev/khevlar","image":"https://media.daily.dev/image/upload/s--I4QFMNNF--/f_auto/v1753089440/avatars/avatar_xMSmIuOOXE5TqCI1OLs4c?_a=BAMClqZW0"}},{"@type":"Comment","text":"This is the future of AI-assisted development: not replacing engineers, but amplifying engineers who understand their systems. Great migration story and a reminder that preparation and testing matter more than the tool itself.","datePublished":"2026-09-13T07:42:58.214Z","url":"https://daily.dev/posts/4apsnn2PL#c-kgqsEzJsN","author":{"@type":"Person","name":"Taha Shokri","url":"https://daily.dev/llaravell","image":"https://lh3.googleusercontent.com/a/ACg8ocLiwIPy9ir8m0LZX1MGI8uN3t4N_NEfvugyyU9S_LFpmEcnwgQ=s96-c"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/affordable-and-fast-migration-4apsnn2pl#faq","mainEntity":[{"@type":"Question","name":"How do I migrate a large Gatsby site to Astro without rewriting my React components?","acceptedAnswer":{"@type":"Answer","text":"Astro's first-party React integration allows existing React components to be ported over unchanged, since Astro is framework-agnostic and supports islands architecture. Astro's content collections can replace Gatsby's GraphQL data layer without altering an existing custom content pipeline (such as LiquidJS and JSX transformers), and Astro can be built alongside Gatsby in the same repo so routes migrate incrementally. daily.dev surfaces migration writeups like this for teams weighing a move off Gatsby to Astro."}},{"@type":"Question","name":"What performance improvements can I expect from migrating a Gatsby site to Astro's islands architecture?","acceptedAnswer":{"@type":"Answer","text":"One migration saw homepage JavaScript drop 61% and mobile Lighthouse scores rise from 66 to 90 after switching to Astro's islands architecture. Total homepage weight fell from about 2.1 MB to 1.1 MB (a 48% reduction), driven largely by deferring a heavy site search modal (saving 437 KB) and dropping Gatsby's GraphQL prefetch behavior, which had pulled 13.6 MB of unused query data ahead of clicks. developers benchmarking framework migrations can track these kinds of performance case studies on daily.dev."}},{"@type":"Question","name":"Why would a team drop Gatsby's GraphQL data layer for a static site?","acceptedAnswer":{"@type":"Answer","text":"A GraphQL layer sitting in front of a static site can become overkill technical debt: one team found it drove aggressive prefetching that pulled 13.6 MB of unused query results per page, more than six times the page's own weight. Replacing it with Astro's content collections eliminated that prefetch overhead while requiring no changes to the existing custom content pipeline. engineers deciding whether to keep or drop a GraphQL layer can follow real-world trade-offs like this on daily.dev."}}]}
```

