Static frontend + AWS ready

Affiliate Service Provider UI

A lean Next.js App Router frontend aligned with the Go API—built for static export, fast CI, and low-noise deploys to S3 and CloudFront. Feature-flag and auth hooks are scaffolded but stay out of your way until wired to the API.

What's included

App structure
PerformanceApp Router firstSegmented layouts for public vs protected flows with SWR-powered client data fetching.
StaticStatic export readyConfigured for `next export` to S3 + CloudFront with image optimization disabled for static hosting.
AuthAPI-native authJWT cookies issued by the Go API; client helpers to rehydrate sessions and gate routes.

Delivery DNA

CI-first
  • Branch mappingdevelop → dev, main → prd
  • Deploy targetS3 + CloudFront (OAC, Brotli, HTTP/3)
  • Checkslint, typecheck, vitest, build, export
Export posture`output: export`, `trailingSlash: true`, unoptimized images, and SWR-based fetching to avoid server dependencies during static hosting.