Added local host support for the javascript SDK

This commit is contained in:
neev jewalkar
2024-06-18 05:42:25 +05:30
parent a20d002a6b
commit e5ffda1eec
6 changed files with 299 additions and 333 deletions
+5
View File
@@ -176,6 +176,11 @@ async function checkStatusExample(jobId) {
checkStatusExample('your_job_id_here');
```
## Running Locally
To use the SDK when running Firecrawl locally, you can change the initial Firecrawl app instance to:
```js
const app = new FirecrawlApp({ apiKey: "YOUR_API_KEY", apiUrl: "http://localhost:3002" });
```
## Error Handling