Skip to content

🎥 Make videos programmatically with React

Update routes.ts

Jonny Burgere0d510c81c6d
diff --git a/packages/cli/src/preview-server/routes.ts b/packages/cli/src/preview-server/routes.ts
index 57f1b586cd..1f26c2d5f5 100644
--- a/packages/cli/src/preview-server/routes.ts
+++ b/packages/cli/src/preview-server/routes.ts
@@ -181,7 +181,6 @@ export const handleRoutes = ({
liveEventsServer,
getCurrentInputProps,
remotionRoot,
- method,
}: {
hash: string;
hashPrefix: string;
@@ -190,7 +189,6 @@ export const handleRoutes = ({
liveEventsServer: LiveEventsServer;
getCurrentInputProps: () => object;
remotionRoot: string;
- method: string;
}) => {
const url = new URL(request.url as string, 'http://localhost');
@@ -206,7 +204,7 @@ export const handleRoutes = ({
return handleFileSource({
remotionRoot,
search: url.search,
- method,
+ method: request.method as string,
response,
});
}