mirror of
https://github.com/tanweai/pua.git
synced 2026-09-21 12:43:10 +08:00
All 5 API endpoints (/api/me, /api/auth/github, /api/auth/callback, /api/upload, /api/auth/logout) were returning SPA index.html instead of executing serverless functions because the landing/ directory was removed from the repo and gitignored. This caused GitHub OAuth to "redirect back to main page" as reported in #89 — clicking Login with GitHub navigated to /api/auth/github which served the SPA without any hash, rendering the landing page. Restores: - Cloudflare Pages Functions (auth, upload, session) - D1 migration schema - R2 upload configuration - wrangler.toml deployment config Closes #89
26 lines
515 B
JSON
26 lines
515 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema.json",
|
|
"style": "base-nova",
|
|
"rsc": false,
|
|
"tsx": true,
|
|
"tailwind": {
|
|
"config": "",
|
|
"css": "src/index.css",
|
|
"baseColor": "neutral",
|
|
"cssVariables": true,
|
|
"prefix": ""
|
|
},
|
|
"iconLibrary": "lucide",
|
|
"rtl": false,
|
|
"aliases": {
|
|
"components": "@/components",
|
|
"utils": "@/lib/utils",
|
|
"ui": "@/components/ui",
|
|
"lib": "@/lib",
|
|
"hooks": "@/hooks"
|
|
},
|
|
"menuColor": "default",
|
|
"menuAccent": "subtle",
|
|
"registries": {}
|
|
}
|