Insert row

This commit is contained in:
2026-05-29 09:24:16 -04:00
parent bce0763785
commit a565502989
2 changed files with 108 additions and 0 deletions
+11
View File
@@ -174,6 +174,17 @@ export default function App() {
setIsThinking(true)
setIsStreaming(false)
// Fire-and-forget: save the submission to Supabase in parallel
// with the Anthropic agent stream. Any failure is logged but must
// never block or surface in the streaming UX.
fetch('/.netlify/functions/save-submission', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(form),
}).catch((err) => {
console.error('Failed to save submission to Supabase', err)
})
try {
let resume = null
// Loop across segments. Each iteration is one HTTP request;