fix dev port

This commit is contained in:
Orion Reed 2024-07-31 19:51:13 +01:00
parent e05f1bafc0
commit 85a7b1632a
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "concurrently \"vite\" \"HOST=localhost PORT=4321 npx y-websocket\" --kill-others",
"dev": "concurrently \"vite\" \"HOST=localhost PORT=1234 npx y-websocket\" --kill-others",
"build": "tsc && vite build",
"preview": "vite preview",
"deploy": "yarn build && npx partykit deploy",
@ -37,4 +37,4 @@
"vite-plugin-wasm": "^3.2.2"
},
"packageManager": "yarn@4.0.2"
}
}

View File

@ -19,7 +19,7 @@ const HOST_URL = import.meta.env.DEV
export default function Canvas() {
const roomId =
new URLSearchParams(window.location.search).get("room") || "2024";
new URLSearchParams(window.location.search).get("room") || "2024-2";
const store = useYjsStore({
roomId: roomId,
hostUrl: HOST_URL,