Skip to content

Commit

Permalink
added more client ports config
Browse files Browse the repository at this point in the history
  • Loading branch information
JeydinNewWon committed Dec 7, 2023
1 parent a30aec4 commit de68873
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
},
"include": ["client/src"],
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
5 changes: 3 additions & 2 deletions client/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
9 changes: 7 additions & 2 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
@@ -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
}
})
4 changes: 4 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"CLIENT_PORT": 5170,
"SERVER_PORT": 5180
}
Empty file removed server/server.js
Empty file.

0 comments on commit de68873

Please sign in to comment.