Skip to content
Thinqzo

hello@thinqzo.com

Why we built CredoStar's marketing site on Astro 5 and Cloudflare Pages

Engineering

A look at the stack decisions behind credostar.com: Astro 5 with React islands, MDX content collections, Cloudflare Pages for hosting, and Pages Functions as a stateless form backend.

CredoStar is the credentialing product we (the Thinqzo team) ship, and credostar.com is its marketing site. The site is twenty-odd static pages and a couple of form endpoints, which sounds like it barely needs a stack decision. The stack still matters, and some of its consequences aren’t obvious until you have lived with the alternatives. This post walks through what we chose and the reasoning behind each piece.

The constraints

These are the constraints we wrote down before choosing any tools:

  1. Content-heavy, JavaScript-light. Most pages are prose. The home page has a few interactive parts (forms, a pricing toggle, an FAQ accordion) but nothing that needs SPA-style state management. Shipping React for every page would be wasteful.
  2. Authoring needs to be markdown-friendly. The Learn articles, the blog and the changelog are all Markdown/MDX files, so we can edit them without a CMS.
  3. Form submissions need a backend, but only barely. Newsletter signup, the design partner application and the contact form make three endpoints. None of them needs to store anything; they only push data to Zoho.
  4. Build and deploy needs to be fast. A commit should be in production within a couple of minutes, without a long CI pipeline.
  5. The site needs to be cheap. It is a marketing site, and at the traffic a pre-launch site gets, hosting it should cost close to nothing.

Astro 5

Astro is a static site framework that renders to HTML by default. React components run on the server unless you explicitly mark them as client islands. For a content site with small pockets of interactivity, that default fits well.

What Astro 5 gave us in practice:

  • Content collections. We have three collections (learn, changelog, blog), each with a Zod schema checked at build time. Authors write MDX, and the build fails if the frontmatter is wrong.
  • Island architecture. A page like /about ships no JavaScript apart from the Header (for the mobile menu toggle) and the Footer (for the newsletter form). The rest of the page is HTML.
  • View Transitions. Moving between pages feels as quick as an SPA, without shipping a client-side router and its runtime.
  • Image service abstraction. We don’t transform images at build time, so we use a no-op image service. That keeps sharp out of the dependency tree and the builds fast. When we add image optimization, switching the service is a one-line change.

Two things nearly pushed us elsewhere:

  • Astro 5 vs Astro 6. Astro 6 came out in 2026, but the @astrojs/tailwind integration we rely on for Tailwind v3 keeps us on Astro 5. We are on Tailwind v3 because the design system was already built against it.
  • Next.js. Next is a good fit for applications. A marketing site has no use for React Server Components, and Astro asks less of us to keep in our heads, so it won.

React 18 islands

Where a page needs interactivity, we use React. The hydration directives let us decide when each island loads:

  • client:load for the header, because the mobile menu has to work as soon as the page appears.
  • client:visible for the form components in the footer, so the newsletter signup hydrates only when someone scrolls down to it.
  • No directive for components that only render, like the FAQ accordion, which we wrote without JavaScript.

The home page ships about 50KB of gzipped JavaScript in total, and most of that is React itself plus the Header chunk. Adding more static content doesn’t grow the bundle.

Tailwind 3

Tailwind suits a site with a consistent visual vocabulary. We define our own tokens for typography (Space Grotesk, Inter, IBM Plex Mono), color (an electric blue accent on a near-white background) and spacing. Tailwind only compiles the classes we use, so the final CSS stays small.

One gotcha: an Astro project has to include .astro in Tailwind’s content paths, or arbitrary classes written in .astro files never get generated. We found this out when a grid-cols-[auto_1fr] layout quietly fell back to stacked block flow. The fix is one line in tailwind.config.js.

Cloudflare Pages

For static hosting, Cloudflare Pages made the trade-offs we wanted:

  • Served from the edge. Static HTML goes out from the nearest Cloudflare location, on the free plan.
  • Auto-deploy from GitHub. We push to main, the build runs on Cloudflare’s infrastructure, and the deploy finishes in 60-90 seconds.
  • Pages Functions for the backend. The form endpoints live in the same project as the static files and go out in the same deploy.
  • Free SSL on a custom domain. Setting it up is one action in the dashboard.

Vercel, Netlify or S3 with CloudFront would all have worked for static hosting. We went with Cloudflare Pages because we already use Cloudflare for DNS and Turnstile.

Pages Functions for forms

A static site still needs a form backend somewhere, and this part is easy to underestimate when planning a static stack. The usual answer is a separate service: a serverless function on another platform, a hosted form tool, or a small microservice.

Pages Functions are Cloudflare Workers attached to your Pages project. A .js file in functions/api/ becomes an endpoint, and it shares the deploy, environment variables and logs with the rest of the site.

Our three endpoints (newsletter, request-access, contact) live in functions/api/ and share helpers from functions/api/_lib/ for Zoho OAuth, Turnstile verification and building JSON responses. Each endpoint is about 80 lines of code, and there is no separate hosting bill.

We wrote a longer piece on this pattern: Cloudflare Pages Functions for static-site form backends.

What we did not pick, and why

Some options we considered and turned down:

  • No CMS. For a team of three, writing MDX and committing it through git is faster than any web-based CMS. Nobody on the project yet needs to edit without git.
  • No headless e-commerce. We don’t sell anything from the marketing site. The credential issuance product runs on a different stack (FastAPI + Postgres + React SPA) and will live at app.credostar.com when we launch.
  • No analytics platform. Cloudflare’s built-in analytics covers what we need at this stage. We will add product analytics inside the application once it has users, and we don’t want a marketing-site analytics script loading on every visit.
  • No A/B testing framework. We don’t have enough traffic for any test to reach statistical significance, so we will add one when there is a reason to.

What we would change

If we started today, we might go straight to Astro 6. Migrating to Tailwind v4 would take more work than staying on v3 currently costs us, but the v4 Vite plugin is noticeably faster than the PostCSS-based v3 pipeline. We will probably make that move in Q4 2026, once the design system has settled.

The rest has held up. The site builds in under three seconds, pages load in under 100ms wherever we have tested them, form submissions reach Zoho within two seconds, and publishing a post is a git commit.