MuseMVP

MuseMVP Base : Next.js pour Node et Cloudflare. MuseMVP Flare : un template SaaS IA qui tourne entièrement sur Cloudflare. Authentification, facturation et administration incluses.

Produit
  • Accueil
  • Tarifs
  • Modèles
Ressources
  • Docs
  • Blog
  • Journal
Mentions légales
  • Confidentialité
  • Conditions
  • Communauté
Open-Launch Top 1 Daily WinnerOpen-Launch Top 1 Daily WinnerVerified DR - Verified Domain Rating for musemvp.comVerified DR - Verified Domain Rating for musemvp.comMuseMVP - Featured on Startup FameMuseMVP - Featured on Startup FameFazier badgeFazier badgeLiftOff award badgeLiftOff award badge

© 2026 MuseMVP. Tous droits réservés.

MuseMVP
  • Tarifs
  • Docs
  • Blog
  • Journal
Acheter All in One
Docs MuseMVP
Docs MuseMVP
OverviewTech StackQuick Start
Project Structure
EmailObject Storage
Security BaselineRequest ProxyTurnstile Verification
Internationalization
SEOAnalytics
Security

Cette page n'est pas encore disponible dans la langue sélectionnée. Vous consultez la version originale en English.

Voir l'original (English)

Request Proxy

MuseMVP uses a single Next.js proxy.ts entry for locale routing.

MuseMVP uses src/proxy.ts as the only Next.js request entry. Locale routing stays there, and auth decisions stay in layouts, pages, and the API.

Why proxy.ts

  • Next.js 16 and OpenNext Cloudflare 1.20 both accept proxy.ts. The template no longer keeps a second request entry.
  • The entry only handles request shape: locale routing, rewrite or redirect, and the static matcher. It does not decide sessions or roles.
  • One file removes the old EdgeOne filename switch between middleware.ts and proxy.ts.

Boundary

Keep request-shape work in proxy.ts. Auth state and business redirects belong in layout, page, or server logic.

OpenNext

OpenNext still marks Node.js middleware bundling as experimental. The template ships proxy.ts because that is the entry OpenNext 1.20.3 and later can bundle.

Security Baseline

Default protections for startup env validation, security headers, error boundaries, and API error handling.

Turnstile Verification

Integrate Cloudflare Turnstile on auth UI and backend verification pipeline.

Sur cette page

Why proxy.ts

Un paiement. Taxes comprises.

All in One

Base, Flare et tous les templates UI, nouveaux compris.

$129

Acheter All in One