- Change JSON import to use require() to avoid module loading issues - Add api/tsconfig.json with CommonJS module configuration - Update Vercel Node.js runtime to @vercel/node@3.2.0 - Add buildCommand to vercel.json for proper compilation - Fix 'Cannot use import statement outside a module' error
22 lines
No EOL
441 B
JSON
22 lines
No EOL
441 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "CommonJS",
|
|
"moduleResolution": "node",
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"declaration": false,
|
|
"outDir": "./dist"
|
|
},
|
|
"include": [
|
|
"**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist"
|
|
]
|
|
} |