path
This commit is contained in:
@@ -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
@@ -1,5 +1,5 @@
|
||||
{
|
||||
//"files": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
@@ -12,16 +12,20 @@
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"resolveJsonModule": true,
|
||||
//"noImplicitOverride": true,
|
||||
"noImplicitOverride": true,
|
||||
"noImplicitReturns": true,
|
||||
//"noPropertyAccessFromIndexSignature": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"isolatedModules": true,
|
||||
//"verbatimModuleSyntax": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"importHelpers": true
|
||||
"importHelpers": true,
|
||||
"paths": {
|
||||
"@util/*": ["server/util/*"],
|
||||
"@server/*": ["server/*"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,6 +99,10 @@
|
||||
/* Completeness */
|
||||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
|
||||
"paths": {
|
||||
"@util/*": ["./server/util/*"],
|
||||
"@server/*": ["./server/*"],
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"./server/**/*"
|
||||
|
||||
+2
-1
@@ -10,7 +10,8 @@ export default defineConfig({
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
'@util': fileURLToPath(new URL('./server/util', import.meta.url)),
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user