Insert row
This commit is contained in:
+11
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user