diff --git a/src/app/analyze.tsx b/src/app/analyze.tsx new file mode 100644 index 0000000000..4567c86c9d --- /dev/null +++ b/src/app/analyze.tsx @@ -0,0 +1,49 @@ +'use client' + +import { useRef } from 'react' +import { useServerInsertedHTML } from 'next/navigation' + +import { apiClient } from '~/lib/request' + +export const Analyze = () => { + const onceRef = useRef(false) + useServerInsertedHTML(() => { + if (onceRef.current) { + return + } + + onceRef.current = true + const apiBase = apiClient.proxy.fn.utils.analyze.toString(true) + + return ( +