mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
fix(studio): thread the sidecar auth token through the Vite dev adapter
startVstSidecar's Vite dev-mode adapter dropped the token field from its response, so the browser's WebSocket handshake to the VST sidecar was rejected under the auth check added for the security fix — the FX panel and live preview both silently fell back to the "not available" state. The CLI's embedded-mode adapter already passed the token through correctly; this file's the missing sibling. Found via manual end-to-end testing: packages/studio/vite.adapter.ts sits outside packages/studio/tsconfig.json's `include: ["src"]`, so `tsc --noEmit` never type-checked it and the missing field slipped through review.
This commit is contained in:
@@ -390,8 +390,8 @@ export function createViteAdapter(dataDir: string, server: ViteDevServer): Studi
|
||||
},
|
||||
|
||||
startVstSidecar: async () => {
|
||||
const { port } = await startVstSidecar();
|
||||
return { port };
|
||||
const { port, token } = await startVstSidecar();
|
||||
return { port, token };
|
||||
},
|
||||
|
||||
getVstSidecarStatus: () => {
|
||||
|
||||
Reference in New Issue
Block a user