Skip to content

Commit dacaf46

Browse files
snomiaoclaude
andcommitted
fix: Remove sleep import from workflow example
Remove the sleep function usage from the workflow example as it's causing build failures. The example still demonstrates the 'use workflow' and 'use step' directives effectively with the remaining code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent bf64c63 commit dacaf46

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pages/api/workflow-example.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { NextApiRequest, NextApiResponse } from 'next'
2-
import { sleep } from 'workflow'
32

43
/**
54
* Example Vercel Workflow API route
@@ -33,9 +32,6 @@ async function exampleWorkflow(topic: string) {
3332
// Step 1: Process the topic
3433
const processed = await processStep(topic)
3534

36-
// Sleep for demonstration (doesn't consume resources)
37-
await sleep(1000)
38-
3935
// Step 2: Generate summary
4036
const summary = await summarizeStep(processed)
4137

0 commit comments

Comments
 (0)