Skip to content

Commit

Permalink
fix: 更新了tsconfig,将server.ts的服务器路径改成从环境获取
Browse files Browse the repository at this point in the history
  • Loading branch information
Zecyel committed Oct 22, 2023
1 parent b05c8ba commit 038e9dd
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
3 changes: 3 additions & 0 deletions entryPoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec "$@"
7 changes: 2 additions & 5 deletions src/util/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
export const AUTH = "https://auth.fduhole.com/api";
// export const AUTH = "https://auth.jingyijun.xyz:9443/api";

export const TREEHOLE = "https://www.fduhole.com/api";
// export const TREEHOLE = "https://hole.jingyijun.xyz:9443/api";
export const AUTH: string = import.meta.env.AUTH
export const TREEHOLE: string = import.meta.env.TREEHOLE
25 changes: 25 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "esnext",
"baseUrl": ".",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"strictPropertyInitialization": false,
"experimentalDecorators": true,
"lib": ["esnext", "dom", "dom.iterable"],
"skipLibCheck": true,
"paths": {
"@/*": ["src/*"],
},
"types": ["vite/client"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.r.ts"],
"references": [{ "path": "./tsconfig.node.json" }],
}
10 changes: 10 additions & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}

0 comments on commit 038e9dd

Please sign in to comment.