Fix generation progress getting stuck at 1% after Comfy finishes.
Poll Comfy history and the job snapshot so the browser still gets the video when the live stream is buffered or the websocket misses completion. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+9
-1
@@ -38,6 +38,14 @@ export default defineNuxtConfig({
|
||||
}
|
||||
},
|
||||
nitro: {
|
||||
preset: 'node-server'
|
||||
preset: 'node-server',
|
||||
routeRules: {
|
||||
'/api/generate/**': {
|
||||
headers: {
|
||||
'Cache-Control': 'no-cache, no-store, no-transform',
|
||||
'X-Accel-Buffering': 'no'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user