fix board
This commit is contained in:
parent
06cc47a23b
commit
a8f8bb549a
|
|
@ -26,14 +26,10 @@ import { components, uiOverrides } from '@/ui-overrides'
|
||||||
import { useCameraControls } from '@/hooks/useCameraControls'
|
import { useCameraControls } from '@/hooks/useCameraControls'
|
||||||
|
|
||||||
//const WORKER_URL = `https://jeffemmett-canvas.jeffemmett.workers.dev`
|
//const WORKER_URL = `https://jeffemmett-canvas.jeffemmett.workers.dev`
|
||||||
export const WORKER_URL = (() => {
|
const DEFAULT_WORKER_URL = 'https://jeffemmett-canvas.jeffemmett.workers.dev';
|
||||||
// During development
|
export const WORKER_URL = typeof import.meta.env.VITE_TLDRAW_WORKER_URL === 'string'
|
||||||
if (import.meta.env.DEV) {
|
? import.meta.env.VITE_TLDRAW_WORKER_URL
|
||||||
return 'http://127.0.0.1:5172';
|
: DEFAULT_WORKER_URL;
|
||||||
}
|
|
||||||
// In production
|
|
||||||
return import.meta.env.VITE_TLDRAW_WORKER_URL || 'https://jeffemmett-canvas.jeffemmett.workers.dev';
|
|
||||||
})();
|
|
||||||
|
|
||||||
const shapeUtils = [ChatBoxShape, VideoChatShape, EmbedShape]
|
const shapeUtils = [ChatBoxShape, VideoChatShape, EmbedShape]
|
||||||
const tools = [ChatBoxTool, VideoChatTool, EmbedTool]; // Array of tools
|
const tools = [ChatBoxTool, VideoChatTool, EmbedTool]; // Array of tools
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue