Files
node-explorer/tsconfig.api.json
Kevin Codex 04e8e8be6d fix: move repoSocial into api/_lib so Vercel functions can import it
Both api/repo-page and api/og crashed in production with
ERR_MODULE_NOT_FOUND on /var/task/src/lib/repoSocial: Vercel compiles
TypeScript under api/ only, so a function importing ../src/lib/* ships
an import specifier the Node runtime can't resolve — and the
/repos/:owner/:name rewrite meant every direct repo-page load 500'd.
The module was already runtime-agnostic by design; it now lives in
api/_lib with the browser hook importing across, and tsconfig.api's
src special-case is gone.
2026-07-22 13:54:57 +08:00

24 lines
585 B
JSON

{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.api.tsbuildinfo",
"target": "es2023",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"module": "esnext",
"types": ["node"],
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
},
"include": ["api"]
}