[READ-ONLY] Mirror of https://github.com/FoxxMD/tldraw-selfhosted. A dockerized, selfhostable version of multiplayer tldraw
docker tldraw whiteboard
0

Configure Feed

Select the types of activity you want to include in your feed.

Use window location for worker url in prod

FoxxMD (Sep 30, 2025, 4:02 PM EDT) 92a7d52e 2de36343

+4 -1
+4 -1
src/client/pages/Room.tsx
··· 10 10 import { useParams } from 'react-router-dom' 11 11 import { ReactNode, useEffect, useState } from 'react' 12 12 13 - const WORKER_URL = import.meta.env.VITE_WORKER_URL ?? 'http://localhost:5858'; 13 + let WORKER_URL = import.meta.env.VITE_WORKER_URL ?? 'http://localhost:5858'; 14 + if(import.meta.env.MODE === 'production') { 15 + WORKER_URL = window.location.origin; 16 + } 14 17 15 18 // In this example, the room ID is hard-coded. You can set this however you like though. 16 19 const roomId = 'test-room'