This commit is contained in:
@@ -4,33 +4,10 @@ server {
|
|||||||
|
|
||||||
location /trigger {
|
location /trigger {
|
||||||
auth_request /auth-1;
|
auth_request /auth-1;
|
||||||
proxy_pass http://127.0.0.1:3000/trigger;
|
proxy_pass http://127.0.0.1:3000;
|
||||||
proxy_cache_valid 401 404 60s;
|
proxy_cache_valid 401 404 60s;
|
||||||
location /trigger/api {
|
location /trigger/api {
|
||||||
proxy_pass http://127.0.0.1:5000;
|
proxy_pass http://127.0.0.1:5000;
|
||||||
}
|
}
|
||||||
location /trigger/assets {
|
|
||||||
proxy_pass http://127.0.0.1:3000/assets;
|
|
||||||
add_header Cache-Control "private, max-age=604800";
|
|
||||||
}
|
|
||||||
location /trigger/backgrounds {
|
|
||||||
proxy_pass http://127.0.0.1:3000/backgrounds;
|
|
||||||
add_header Cache-Control "private, max-age=604800";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
location /favicon.ico {
|
|
||||||
rewrite ^/gun.jpg /trigger/favicon.ico redirect;
|
|
||||||
}
|
|
||||||
location ^~ /assets {
|
|
||||||
rewrite ^/assets/(.*) /trigger/assets/$1 redirect;
|
|
||||||
}
|
|
||||||
location ^~ /images {
|
|
||||||
rewrite ^/images/(.*) /trigger/images/$1 redirect;
|
|
||||||
}
|
|
||||||
location ^~ /backgrounds {
|
|
||||||
rewrite ^/backgrounds/(.*) /trigger/backgrounds/$1 redirect;
|
|
||||||
}
|
|
||||||
location ^~ /api {
|
|
||||||
rewrite ^/api/(.*) /trigger/api/$1 redirect;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
26
tsconfig.app.json
Normal file
26
tsconfig.app.json
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||||
|
"target": "es2023",
|
||||||
|
"lib": ["ES2023", "DOM"],
|
||||||
|
"module": "esnext",
|
||||||
|
"types": ["vite/client"],
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"composite": true,
|
||||||
|
|
||||||
|
/* Bundler mode */
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"allowImportingTsExtensions": false,
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
|
"moduleDetection": "force",
|
||||||
|
"noEmit": false,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
|
||||||
|
/* Linting */
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"erasableSyntaxOnly": true,
|
||||||
|
"noFallthroughCasesInSwitch": true
|
||||||
|
},
|
||||||
|
"include": ["src"]
|
||||||
|
}
|
||||||
@@ -2,18 +2,16 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2020",
|
"target": "ES2020",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "ESNext",
|
"module": "nodenext",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"baseUrl": "./src",
|
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
"esModuleInterop": false,
|
|
||||||
"lib": ["ESNext", "DOM"],
|
"lib": ["ESNext", "DOM"],
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"types": ["vite/client", "vitest"],
|
"types": ["vite/client", "vitest"],
|
||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "nodenext",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
@@ -25,6 +23,7 @@
|
|||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"components": ["./components/index.ts"],
|
"components": ["./components/index.ts"],
|
||||||
"contexts": ["./contexts/index.ts"],
|
"contexts": ["./contexts/index.ts"],
|
||||||
@@ -35,5 +34,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [
|
||||||
|
{ "path": "./tsconfig.node.json" },
|
||||||
|
{ "path": "./tsconfig.app.json" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,25 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"skipLibCheck": true,
|
"target": "es2023",
|
||||||
"module": "ESNext",
|
"lib": ["ES2023"],
|
||||||
"moduleResolution": "bundler",
|
"module": "esnext",
|
||||||
"allowSyntheticDefaultImports": true,
|
"types": ["node"],
|
||||||
"strict": true
|
"skipLibCheck": true,
|
||||||
},
|
"composite": true,
|
||||||
"include": ["vite.config.ts"]
|
|
||||||
|
/* Bundler mode */
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"allowImportingTsExtensions": false,
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
|
"moduleDetection": "force",
|
||||||
|
"noEmit": false,
|
||||||
|
|
||||||
|
/* Linting */
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"erasableSyntaxOnly": true,
|
||||||
|
"noFallthroughCasesInSwitch": true
|
||||||
|
},
|
||||||
|
"include": ["vite.config.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user