- Disable source maps in production builds (vite.config.ts: sourcemap: false) - Add vite-plugin-obfuscator for JS obfuscation (hex identifiers, base64 string encoding) - Move OIDC config behind VITE_* env vars with dev fallbacks (auth/config.ts) - Add server_tokens off to nginx.conf to stop advertising nginx version - Add type declaration for vite-plugin-obfuscator
28 lines
692 B
JSON
28 lines
692 B
JSON
{
|
|
"compilerOptions": {
|
|
// "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
"target": "ES2022",
|
|
"lib": [
|
|
"ES2023"
|
|
],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
// "erasableSyntaxOnly": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
// "noUncheckedSideEffectImports": true
|
|
},
|
|
"include": [
|
|
"vite.config.ts",
|
|
"vite-plugin-obfuscator.d.ts"
|
|
]
|
|
}
|