Skip to content

🎥 Make videos programmatically with React

don't validate a URL as filename

Jonny Burger54407ad46cac
diff --git a/packages/cli/src/entry-point.ts b/packages/cli/src/entry-point.ts
index 21796e5f8d..489018e2e0 100644
--- a/packages/cli/src/entry-point.ts
+++ b/packages/cli/src/entry-point.ts
@@ -32,6 +32,10 @@ export const findEntryPoint = (
return result;
}
+ if (RenderInternals.isServeUrl(result.file)) {
+ return result;
+ }
+
if (!existsSync(result.file)) {
throw new Error(
`${result.file} was chosen as the entry point (reason = ${result.reason}) but it does not exist.`
@@ -40,7 +44,7 @@ export const findEntryPoint = (
if (lstatSync(result.file).isDirectory()) {
throw new Error(
- `${result.file} was chosen as an entry point (reason = ${result.reason}) but it is a directory - it needs to be a file.`
+ `${result.file} was chosen as the entry point (reason = ${result.reason}) but it is a directory - it needs to be a file.`
);
}