fix worker url
This commit is contained in:
parent
a8f8bb549a
commit
6f89446ad8
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue