fix dev port
This commit is contained in:
parent
e05f1bafc0
commit
85a7b1632a
|
|
@ -4,7 +4,7 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"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",
|
"build": "tsc && vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"deploy": "yarn build && npx partykit deploy",
|
"deploy": "yarn build && npx partykit deploy",
|
||||||
|
|
@ -37,4 +37,4 @@
|
||||||
"vite-plugin-wasm": "^3.2.2"
|
"vite-plugin-wasm": "^3.2.2"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.0.2"
|
"packageManager": "yarn@4.0.2"
|
||||||
}
|
}
|
||||||
|
|
@ -19,7 +19,7 @@ const HOST_URL = import.meta.env.DEV
|
||||||
|
|
||||||
export default function Canvas() {
|
export default function Canvas() {
|
||||||
const roomId =
|
const roomId =
|
||||||
new URLSearchParams(window.location.search).get("room") || "2024";
|
new URLSearchParams(window.location.search).get("room") || "2024-2";
|
||||||
const store = useYjsStore({
|
const store = useYjsStore({
|
||||||
roomId: roomId,
|
roomId: roomId,
|
||||||
hostUrl: HOST_URL,
|
hostUrl: HOST_URL,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue