Refactor: move public storefront stop data to server-side + parallel agent work
Server-side / caching refactor (Grok): - New RPC get_public_stops_for_brand (migration 148) for public storefront stops - New server action getPublicStopsForBrand with revalidate=300 + tags - Add revalidateTag invalidation to createStopsBatch + publishStop - Convert /tuxedo/stops and /indian-river-direct/stops to Server Components - Extract TuxedoStopsList + IndianRiverStopsList as client islands (GSAP only) - Removes supabase-js from browser bundle on those routes - Both pages now statically prerendered (5m ISR) Parallel agent changes also staged: - AI provider model list refresh (claude-sonnet-4-5, etc.) - ESLint directive patches for react-hooks/set-state-in-effect - Admin + storefront + checkout + cart updates - New admin_create_stop_rpcs migration (147) - Misc fixes across ~90 files Build verified: typecheck clean, lint clean on new files, production build succeeds.
This commit is contained in:
@@ -91,6 +91,8 @@ Signing secret for Resend webhook payloads.
|
||||
|
||||
### AI
|
||||
|
||||
The platform supports five AI providers. Each brand can override per-provider keys in the admin AI Provider panel (`/admin/settings/ai`). Env vars here are fallbacks for when no per-brand key is configured.
|
||||
|
||||
#### `OPENAI_API_KEY`
|
||||
OpenAI API key for AI features (AI Intelligence Pack add-on).
|
||||
- **Where to get:** [OpenAI Platform](https://platform.openai.com) → API Keys → Create secret key
|
||||
@@ -101,6 +103,20 @@ OpenAI organization ID (optional — for workspace-level usage tracking).
|
||||
- **Where to get:** OpenAI Platform → Settings → Organization ID
|
||||
- **Format:** `org-...`
|
||||
|
||||
#### `MINIMAX_API_KEY`
|
||||
MiniMax (MiniMax) API key — OpenAI-compatible. **Pre-launch default provider.**
|
||||
- **Where to get:** [MiniMax Platform](https://platform.minimax.io) → API Keys
|
||||
- **Format:** `ey...` (JWT-style)
|
||||
- **Used by:** `getAIClient()` falls back to this when no per-brand key is set. `ai-import.ts` Import Center also prefers this over `OPENAI_API_KEY` when both are set.
|
||||
|
||||
#### `MINIMAX_BASE_URL` (optional)
|
||||
Override the MiniMax API base URL.
|
||||
- **Default:** `https://api.minimax.io/v1` (global)
|
||||
- **China:** `https://api.minimaxi.com/v1` (mainland endpoint, lower latency inside China)
|
||||
|
||||
#### Other providers
|
||||
The admin panel also accepts per-brand keys for **Anthropic** (`sk-ant-...`), **Google Gemini** (`AIza...`), **xAI** (`xai-...`), and **custom** OpenAI-compatible endpoints. These can also be set globally via `ANTHROPIC_API_KEY`, `GOOGLE_API_KEY`, `XAI_API_KEY`.
|
||||
|
||||
### Square
|
||||
|
||||
#### `SQUARE_APP_SECRET`
|
||||
|
||||
Reference in New Issue
Block a user