Skip to content

Commit

Permalink
fix: use https
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 16, 2023
1 parent c2e392e commit c08d07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/playRoom/hooks/usePlayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function usePlayersCards (): [PlayerInfoType[], PlayerInfoType |
const navigate = useNavigate();

useEffect(() => {
const socket = io('http://152.136.254.142:4001');
const socket = io('https://152.136.254.142:4001');
// client-side
socket.on('connect', () => {
console.log('========== we are connecting ws ===========');
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineConfig({
port: 3333, // 指定服务器端口
open: true, // 开发服务器启动时,自动在浏览器打开
strictPort: false, // 设为 true 时,若端口已被占用会直接退出,不会尝试下一个可用端口
https: false, // 是否开启 https 服务
https: true, // 是否开启 https 服务
cors: true, // 允许跨域
// 配置代理
proxy: {
Expand Down

0 comments on commit c08d07b

Please sign in to comment.