mirror of
https://github.com/tanweai/pua.git
synced 2026-08-29 02:02:20 +08:00
1e0100d6a5
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
34 lines
872 B
JSON
34 lines
872 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"target": "ES2022",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"types": ["vite/client"],
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"erasableSyntaxOnly": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
}
|
|
},
|
|
"include": ["src"],
|
|
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/test/**/*"]
|
|
}
|