Files
cvfs/apps/webapp
Claude f3d1ddad5d Fix API URL config: use Next.js rewrite proxy instead of NEXT_PUBLIC_*
NEXT_PUBLIC_* is baked at build time so runtime docker-compose environment
vars have no effect. Instead:
- next.config.ts rewrites /api/* -> API_BASE_URL/api/* at the server level
- api.ts uses relative paths (no env var in client bundle at all)
- docker-compose passes API_BASE_URL=http://cvfs-backend:8080 at runtime
- Dockerfile no longer needs any build args

Requests: browser -> Next.js server (/api/*) -> cvfs-backend:8080 (/api/*)

https://claude.ai/code/session_01Xmxm2QLgFBgRJyYD6VukR6
2026-04-02 18:23:58 +00:00
..
2026-04-02 18:47:14 +02:00
2026-04-02 19:15:47 +02:00
2026-04-02 18:47:14 +02:00
2026-04-02 18:47:14 +02:00
2026-04-02 18:47:14 +02:00
2026-04-02 18:47:14 +02:00
2026-04-02 18:47:14 +02:00
2026-04-02 18:47:14 +02:00
2026-04-02 18:47:14 +02:00
2026-04-02 18:47:14 +02:00

Next.js 15 webapp with React 19, Tailwind CSS 4, Supabase auth, and Turbopack.

Start

bun dev
# or from project root: make run.webapp

Open http://localhost:3000.

Scripts

Command Description
bun dev Dev server with Turbopack
bun build Production build
bun start Serve production build
bun lint Run ESLint
bun typecheck Run tsc --noEmit

Auth

Auth is wired to Supabase via NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY. Set NEXT_PUBLIC_REQUIRE_AUTH=false in .env to disable auth-gating entirely (default for quick prototyping).

Structure

src/
  app/           - Next.js App Router pages
  components/    - Reusable bare-bones components (style last)
  utils/supabase - Supabase client helpers
  libs/          - Shared utilities
  locales/       - i18n strings (add languages as needed)