Complete demo-mode auth conversion and fix the frontend build
proxy.ts already declared auth disabled, but layout.tsx still wrapped the tree in ClerkProvider and topbar.tsx rendered UserButton. @clerk/nextjs v7 aborts `next build` without a real publishable key, so the image could not be built at all. Remove the remaining Clerk surface, drop the dependency, and delete the sign-in/sign-up route groups. Also fix two pnpm failures this exposed: the deps stage never copied pnpm-workspace.yaml (so the build-script allowlist was invisible), and pnpm 11 renamed ignoredBuiltDependencies to allowBuilds. Declare both spellings and pin packageManager so this cannot drift again. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4c6335d316
commit
d4a104be9d
10 changed files with 201 additions and 367 deletions
|
|
@ -1,19 +1,11 @@
|
|||
# ─────────────────────────────────────────────────────────────────
|
||||
# BMS Frontend — Environment Variables
|
||||
# Copy this file to .env.local and fill in your values.
|
||||
# Copy this file to .env.local. The defaults below work as-is.
|
||||
# Never commit .env.local to git.
|
||||
# ─────────────────────────────────────────────────────────────────
|
||||
|
||||
# Clerk authentication
|
||||
# Get these from https://dashboard.clerk.com → Your App → API Keys
|
||||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_REPLACE_ME
|
||||
CLERK_SECRET_KEY=sk_test_REPLACE_ME
|
||||
|
||||
# Clerk redirect paths — no change needed
|
||||
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
|
||||
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
|
||||
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
|
||||
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard
|
||||
#
|
||||
# Authentication is disabled (demo mode) — see proxy.ts and the README.
|
||||
# There are no auth keys to set.
|
||||
|
||||
# API path — leave as-is
|
||||
# All /api/backend/* requests are proxied server-side to the FastAPI backend
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue