Update page.tsx

This commit is contained in:
Steve Ruiz 2023-11-25 20:03:11 +00:00
parent edc01c7dae
commit 3130f000d6
1 changed files with 5 additions and 6 deletions

View File

@ -1,16 +1,15 @@
'use client' 'use client'
import { LiveImageShape, LiveImageShapeUtil } from '@/components/LiveImageShapeUtil' import { LiveImageShape, LiveImageShapeUtil } from '@/components/LiveImageShapeUtil'
import * as fal from '@fal-ai/serverless-client'
import { Editor, Tldraw, useEditor } from '@tldraw/tldraw' import { Editor, Tldraw, useEditor } from '@tldraw/tldraw'
import { useEffect } from 'react' import { useEffect } from 'react'
import { LiveImageTool, MakeLiveButton } from '../components/LiveImageTool' import { LiveImageTool, MakeLiveButton } from '../components/LiveImageTool'
fal.config({ // fal.config({
requestMiddleware: fal.withProxy({ // requestMiddleware: fal.withProxy({
targetUrl: '/api/fal/proxy', // targetUrl: '/api/fal/proxy',
}), // }),
}) // })
const shapeUtils = [LiveImageShapeUtil] const shapeUtils = [LiveImageShapeUtil]
const tools = [LiveImageTool] const tools = [LiveImageTool]