← Back to posts

Designing Content for Performance: A Foundation for Edge Architecture

Performance isn’t something you “turn on.” It’s something you design for. This starter combines structured content from Sanity with edge deployment via OpenNext on Cloudflare. The goal isn’t to preconfigure every rendering strategy — it’s to provide a clean, extensible foundation for performance-first applications.

Pedro Duque
Pedro Duque
computing performance

Structured Content Enables Predictability

Sanity encourages a structured content model:

  • Clearly defined schemas
  • Portable content blocks
  • Explicit field types
  • Query-driven data access

When your content is predictable, your data fetching becomes predictable.

And predictable systems are easier to optimize.

Instead of fetching large, unstructured payloads, you can request exactly what the UI needs — nothing more.

That discipline is the first step toward performance.

Edge Deployment as a Baseline

By deploying to Cloudflare Workers through OpenNext, the application runs closer to users globally.

Even without advanced rendering strategies enabled, this setup provides:

  • Low-latency request handling
  • Global distribution
  • CDN-level caching possibilities
  • A path toward more advanced runtime patterns

This means performance improvements don’t require rethinking the entire stack — they can be layered on progressively.

Ready for Evolution

This starter does not enforce ISR, SSR, or complex caching policies out of the box.

Instead, it focuses on:

  • Clean separation between content and frontend
  • Edge-compatible deployment
  • A maintainable architecture

From here, you can evolve the system by:

  • Introducing route-level rendering strategies
  • Implementing custom caching headers
  • Adding preview and draft flows
  • Exploring advanced patterns supported by OpenNext

The foundation is stable — and extensible.

Why This Approach Matters

Many templates try to demonstrate every feature at once.

This one intentionally does not.

It provides:

  • A clear content model
  • A modern React frontend
  • An edge-ready deployment target

Performance is not forced — it’s enabled.

And that flexibility is what makes this starter a strong base for real-world projects.