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": [
|
"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/*"],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
@@ -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)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user