mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
fix(studio): stabilize manual edit manifest rendering
This commit is contained in:
committed by
Miguel Ángel
parent
02de2819f2
commit
dfe9c2293c
@@ -318,8 +318,8 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
|
||||
|
||||
app.get("/api/events", (c) => {
|
||||
return streamSSE(c, async (stream) => {
|
||||
const listener = () => {
|
||||
stream.writeSSE({ event: "file-change", data: "{}" }).catch(() => {});
|
||||
const listener = (path: string) => {
|
||||
stream.writeSSE({ event: "file-change", data: JSON.stringify({ path }) }).catch(() => {});
|
||||
};
|
||||
watcher.addListener(listener);
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user