diff --git a/client/tsconfig.json b/client/tsconfig.json index 400bdb2..042d77c 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -18,8 +18,8 @@ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, }, - "include": ["client/src"], + "include": ["src"], "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/client/tsconfig.node.json b/client/tsconfig.node.json index 42872c5..1953350 100644 --- a/client/tsconfig.node.json +++ b/client/tsconfig.node.json @@ -4,7 +4,8 @@ "skipLibCheck": true, "module": "ESNext", "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "rootDir": "./../" }, - "include": ["vite.config.ts"] + "include": ["vite.config.ts", "../config.json"] } diff --git a/client/vite.config.ts b/client/vite.config.ts index 5a33944..b950cc1 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -1,7 +1,12 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; + +import { CLIENT_PORT } from '../config.json'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + server: { + port: CLIENT_PORT + } }) diff --git a/config.json b/config.json new file mode 100644 index 0000000..19eda24 --- /dev/null +++ b/config.json @@ -0,0 +1,4 @@ +{ + "CLIENT_PORT": 5170, + "SERVER_PORT": 5180 +} \ No newline at end of file diff --git a/server/server.js b/server/server.js deleted file mode 100644 index e69de29..0000000