Skip to content
Putting technology to work.
Insights to guide decisions and action.

Search articles

Series: Continuous Improvement Notes for Growing Websites

Next.js vs Astro — Which Should You Choose for Building Static Sites? (2026 Edition)

Table of contents · 6 items

If you are publishing a site focused primarily on articles and service introductions, Astro is easy to consider as a candidate. If you want to share screens and state management with an existing React app, there is good reason to start by considering Next.js. However, since Next.js can also output static files, you cannot simply choose based on the premise that "Astro is the only option because it is a static site."

In this article, we compare the criteria that static site production leads need to decide on. Official documentation was confirmed on October 27, 2026. Performance benchmarks implementing the identical site in both frameworks have not been conducted.

First, decide whether server processing is required at view time

If company overviews and article bodies are the same for everyone, you can consider an architecture that generates and serves HTML at build time. If you have pages that return per-user information from a server, you must also design where that processing will be executed.

With Next.js static export, setting output to export in your configuration outputs built HTML, CSS, and JavaScript to the out directory. In this setup, App Router Server Components are also executed at build time. On the other hand, server-dependent features such as inspecting cookies upon request and ISR cannot be used with static export. Standard image optimization also requires separate handling.

Astro generates static pages by default. While you can render only necessary pages at request time, doing so requires an execution environment and an adapter suited to your delivery infrastructure. Deciding the division between static and dynamic pages in advance will make hosting cost estimates more concrete.

Compare the amount of JavaScript, including implementation and external services

In Astro, UI components such as React are also rendered as HTML by default. By attaching client directives to areas requiring user interaction, you can deliver JavaScript solely for those sections. The official UI framework integrations documentation explains methods for activating components immediately or once they enter the viewport.

This mechanism works well with sites where the vast majority of article content is static and interactions are limited to search or forms. However, adding advertisements, analytics tags, chat widgets, and embedded videos introduces their respective network traffic and execution time. Using Astro does not necessarily mean the entire site has zero JavaScript.

In Next.js as well, delivered content varies based on how Server Components and Client Components are separated. Rather than deciding on payload size or perceived speed based solely on framework names, verify using a representative page containing the identical images, fonts, and external tags.

Compare production and operational requirements

Decision pointPoints to check with Next.jsPoints to check with Astro
Serving only public pagesWhether requirements fit within static export constraintsWhether static generation can accommodate the update frequency
Having personalized screens after loginCompatibility between server features and the hosting environmentCompatibility between dynamic routes and adapters
Reusing React assetsSharing responsibilities and state management with existing appsLoading scope per UI component and passing state
Updating articles frequentlyCMS integration, build, and preview operationsContent management, build, and preview operations
Handover of maintenance personnelMaintenance setup for React and Next.jsMaintenance setup for Astro and the UI frameworks in use

This table outlines criteria for selection. It does not indicate speed rankings under specific configurations or the relative superiority of maintenance costs.

The architecture adopted by GH Media

Here at GH Media, articles are statically generated using Astro. For displaying popular articles, GA4 data is fetched at build time rather than on each page view. The mechanism is introduced in our article on displaying popular GA4 articles with Astro SSG.

What this demonstrates is that you can statically serve articles while combining them with data fetching at build time. The existence of this setup does not serve as proof that it is faster than building the same site with Next.js.

Verify on a small scale before adopting

When comparing, create prototypes of the screens you actually need: top page, article details, search, and inquiries. The following are proposals for comparison, not measured results from this article.

  1. Prepare identical body copy, image dimensions, fonts, and analytics tags.
  2. Align on either static delivery or server rendering, and record the planned versions and hosting environments.
  3. Under representative mobile network conditions, verify LCP, INP, CLS, transfer size, and time to complete the intended interaction over multiple runs.
  4. Also compare time from article update to publication, preview workflows, and rollback procedures in case of failure.

For content sites, first examine whether publishing operations and required interactions can be implemented without undue complexity. If business applications are the primary focus, validate screens involving authentication and data updates first. The Jamstack approach is also a useful reference when separating content delivery from dynamic processing.

Please consult us via contact regarding architecture selection or migration from existing environments. Knowing your screen types, update frequency, and current technology stack makes evaluation smoother.

Revision history

October 27, 2026: Removed comparative figures for display speed, JavaScript payload size, build time, and Lighthouse scores whose sources and measurement conditions could not be verified. Also corrected the statement that the App Router became stable in Next.js 15, restructuring the content around current official specifications and selection criteria. In official release history, the App Router reached stability in Next.js 13.4.

Share this articleXFacebook
Rui Teruya

Former corporate league baseball player and founder of an IT venture. Founded the company with the drive to ride the fast-moving waves of the world and deliver truly valuable services to society.

Follow this topic: Continuous Improvement Notes for Growing Websites

Turn this article's theme into your company's next step

Concrete steps forward for your organization.

We organize your desired architecture, legacy systems, and operational requirements to formulate your next steps toward execution.

  • Desired architecture
  • Integration with existing environments
  • Operational requirements
Consult on development & operations initiatives

You can consult with us from the initial conceptual stage. Details from this article will be carried over to the inquiry form.

Receive the latest articles by email