Skip to content

Architecture

Multi-Layer Architecture

┌─────────────────────────────────────────────┐
│              Presentation Layer              │
│  Server Components  Client Components        │
│  Route Groups  Layouts  Templates            │
├─────────────────────────────────────────────┤
│              Application Layer              │
│  Server Actions  API Routes  Middleware      │
│  Auth Guard  i18n  Rate Limiting             │
├─────────────────────────────────────────────┤
│                 Data Layer                  │
│  Supabase Clients  Zod Validations          │
│  Server Actions  RLS Policies               │
├─────────────────────────────────────────────┤
│              Infrastructure                 │
│  Supabase  PostgreSQL  Vercel  Sentry       │
│  Alibaba OSS  Stripe  Docker  GitHub CI    │
└─────────────────────────────────────────────┘

Request Flow

Request → Middleware (locale + auth)
        → Route Group Match
        → Layout (Theme + Provider)
        → Page Server Component

Route Design

GroupRoutesAccess
Marketing/, /features, /pricing, /blogPublic
Auth/auth/login, /auth/registerPublic
Dashboard/dashboard, /dashboard/teamProtected
Docshttps://indiestack-docs.vercel.appStandalone VitePress docs site

基于 MIT 协议开源