diff --git a/src/components/Board.tsx b/src/components/Board.tsx index 27deec8..4408973 100644 --- a/src/components/Board.tsx +++ b/src/components/Board.tsx @@ -26,10 +26,7 @@ import { components, uiOverrides } from '@/ui-overrides' import { useCameraControls } from '@/hooks/useCameraControls' //const WORKER_URL = `https://jeffemmett-canvas.jeffemmett.workers.dev` -const DEFAULT_WORKER_URL = 'https://jeffemmett-canvas.jeffemmett.workers.dev'; -export const WORKER_URL = typeof import.meta.env.VITE_TLDRAW_WORKER_URL === 'string' - ? import.meta.env.VITE_TLDRAW_WORKER_URL - : DEFAULT_WORKER_URL; +export const WORKER_URL = 'https://jeffemmett-canvas.jeffemmett.workers.dev'; const shapeUtils = [ChatBoxShape, VideoChatShape, EmbedShape] const tools = [ChatBoxTool, VideoChatTool, EmbedTool]; // Array of tools diff --git a/vite.config.ts b/vite.config.ts index 9ded5e1..3927bd7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,9 +6,6 @@ import topLevelAwait from "vite-plugin-top-level-await"; import { viteStaticCopy } from 'vite-plugin-static-copy'; export default defineConfig({ - define: { - 'import.meta.env.VITE_TLDRAW_WORKER_URL': JSON.stringify(process.env.VITE_TLDRAW_WORKER_URL || 'https://jeffemmett-canvas.jeffemmett.workers.dev') - }, envPrefix: ['VITE_'], plugins: [ react(),