87a2f93edb
Introduce user registration/login gated behind optional NEXT_PUBLIC_SUPABASE_* env vars (leave blank to disable — app behaves exactly as before). Adds proxy.ts for automatic cookie session refresh, requireUser() API route guards on all 7 compute-consuming routes, AuthModal (Google/GitHub OAuth + 6-digit email OTP), UserChip header component, and login_success analytics event. Identity is fully decoupled from Session/engine — no type changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
45 lines
1.1 KiB
JSON
45 lines
1.1 KiB
JSON
{
|
|
"name": "infiplot",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "AI 实时交互剧情游戏",
|
|
"license": "AGPL-3.0-only",
|
|
"packageManager": "pnpm@9.12.0",
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"typecheck": "tsc --noEmit",
|
|
"build:cf": "opennextjs-cloudflare build",
|
|
"preview:cf": "opennextjs-cloudflare preview",
|
|
"deploy:cf": "opennextjs-cloudflare deploy"
|
|
},
|
|
"dependencies": {
|
|
"@supabase/ssr": "^0.12",
|
|
"@supabase/supabase-js": "^2.108",
|
|
"jsonrepair": "^3.14.0",
|
|
"jszip": "^3.10.1",
|
|
"next": "^16.0.0",
|
|
"openai": "^6.42.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@opennextjs/cloudflare": "^1.19.11",
|
|
"@types/node": "^22.9.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"autoprefixer": "^10.4.20",
|
|
"postcss": "^8.4.49",
|
|
"sharp": "^0.33.5",
|
|
"tailwindcss": "^3.4.15",
|
|
"typescript": "^5.6.3",
|
|
"wrangler": "^4.96.0"
|
|
}
|
|
}
|