This commit is contained in:
2023-08-05 12:22:51 +00:00
parent 45d05f900f
commit 5ba073c125
4 changed files with 15 additions and 12 deletions
-6
View File
@@ -1,6 +0,0 @@
import axios from "axios";
export function setAxiosXMLHttpRequest(): void{
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
//TODO: X-Requested-With 믿지 말자.
}
+9 -5
View File
@@ -1,5 +1,5 @@
{ {
//"files": [], "files": [],
"references": [ "references": [
{ {
"path": "./tsconfig.node.json" "path": "./tsconfig.node.json"
@@ -12,16 +12,20 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"resolveJsonModule": true, "resolveJsonModule": true,
//"noImplicitOverride": true, "noImplicitOverride": true,
"noImplicitReturns": true, "noImplicitReturns": true,
//"noPropertyAccessFromIndexSignature": true, "noPropertyAccessFromIndexSignature": true,
"isolatedModules": true, "isolatedModules": true,
//"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"moduleResolution": "node", "moduleResolution": "node",
"strict": true, "strict": true,
"importHelpers": true "importHelpers": true,
"paths": {
"@util/*": ["server/util/*"],
"@server/*": ["server/*"],
}
} }
} }
+4
View File
@@ -99,6 +99,10 @@
/* Completeness */ /* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true, /* Skip type checking all .d.ts files. */ "skipLibCheck": true, /* Skip type checking all .d.ts files. */
"paths": {
"@util/*": ["./server/util/*"],
"@server/*": ["./server/*"],
}
}, },
"include": [ "include": [
"./server/**/*" "./server/**/*"
+2 -1
View File
@@ -10,7 +10,8 @@ export default defineConfig({
], ],
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url)),
'@util': fileURLToPath(new URL('./server/util', import.meta.url)),
} }
} }
}) })