36e264f3e3
- Wire admin API into homepage + templates page (ISR 60s, null fallback) - Add src/lib/admin-api.ts with safeFetch helper - Add adminProjectToTemplateItem + adminProjectToCatalogTemplate mappers - Add LogoMark SVG component, replace Sparkles icon in Navbar/Footer/Sidebar - Add public/favicon.svg (SVG brand mark) - Rewrite opengraph-image.tsx with FlatRender branding - Add RTL/Persian font cascade: unlayered [dir=rtl] block forces Vazirmatn - Dashboard Settings page: Profile, Security, Billing, Notifications sections - Add src/lib/supabase/client.ts browser client - Admin API: GET /me, PATCH /profile, POST /change-password endpoints - Admin API DTOs: AdminUserDto, UpdateProfileRequest, ChangePasswordRequest - Admin UI Settings page with TanStack Query + mutations - Add CLAUDE.md + README.md to both repos for new-machine onboarding - Update PROJECT_MEMORY.md with session log - Add appsettings.Development.json.example template
41 lines
1.5 KiB
Bash
41 lines
1.5 KiB
Bash
# FlatRender Admin API (optional — set to enable dynamic templates/categories)
|
|
# Run the admin-api service at D:\Projects\flatrender-admin\admin-api
|
|
# Leave empty to use hardcoded fallback data
|
|
ADMIN_API_URL=http://localhost:5000
|
|
|
|
# Image editor — background removal (https://www.remove.bg/api)
|
|
REMOVE_BG_API_KEY=
|
|
# Optional self-hosted rembg HTTP endpoint (POST raw image bytes → PNG)
|
|
REMBG_SERVICE_URL=
|
|
|
|
# Video render pipeline
|
|
RENDER_WORKER_URL=http://localhost:3355
|
|
RENDER_WORKER_SECRET=
|
|
RENDER_WORKER_PORT=3355
|
|
RENDER_MOCK=true
|
|
NEXRENDER_TEMPLATE_SRC=file:///path/to/template.aep
|
|
NEXRENDER_COMPOSITION=CreatorStudio_Main
|
|
NEXRENDER_BINARY=
|
|
NEXRENDER_SERVER_URL=
|
|
NEXRENDER_WORKPATH=.nexrender
|
|
|
|
# Site URL for SEO metadata, OAuth, and Stripe redirects
|
|
NEXT_PUBLIC_SITE_URL=http://localhost:3000
|
|
|
|
# Supabase — required for auth, dashboard, and saving projects (templates → studio)
|
|
# https://supabase.com/dashboard/project/_/settings/api
|
|
# Without these, `npm run dev` still opens the studio via a local mock project ID (dev only).
|
|
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
|
|
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
|
|
|
|
# Stripe — https://dashboard.stripe.com/apikeys
|
|
STRIPE_SECRET_KEY=sk_test_...
|
|
STRIPE_WEBHOOK_SECRET=whsec_...
|
|
|
|
# Stripe Price IDs (Products → each price → copy ID)
|
|
STRIPE_PRICE_PRO_MONTHLY=price_...
|
|
STRIPE_PRICE_PRO_ANNUAL=price_...
|
|
STRIPE_PRICE_BUSINESS_MONTHLY=price_...
|
|
STRIPE_PRICE_BUSINESS_ANNUAL=price_...
|