Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Fix Config Load on Tests (#2506)

Abimael Martellc6dc498d28f6
diff --git a/.github/workflows/test-server.yml b/.github/workflows/test-server.yml
index 6147e8f62..b5fe8c083 100644
--- a/.github/workflows/test-server.yml
+++ b/.github/workflows/test-server.yml
@@ -34,7 +34,7 @@ jobs:
env:
HOST: 0.0.0.0
TEST_SUITE_SELF_HOSTED: true
- TEST_SUITE_WEBSITE: ${{ matrix.proxy == 'no-proxy' && 'http://127.0.0.1:4321' || '' }}
+ TEST_SUITE_WEBSITE: http://127.0.0.1:4321
OPENAI_API_KEY: ${{ matrix.ai == 'openai' && secrets.OPENAI_API_KEY || '' }}
SEARXNG_ENDPOINT: ${{ matrix.search == 'searxng' && 'http://localhost:3434' || '' }}
PLAYWRIGHT_MICROSERVICE_URL: ${{ matrix.engine == 'playwright' && 'http://localhost:3003/scrape' || '' }}
diff --git a/apps/api/src/config.ts b/apps/api/src/config.ts
index 1ac1451a7..cc5bee52e 100644
--- a/apps/api/src/config.ts
+++ b/apps/api/src/config.ts
@@ -112,7 +112,7 @@ const configSchema = z.object({
// External Services
PLAYWRIGHT_MICROSERVICE_URL: z.string().optional(),
- HTML_TO_MARKDOWN_SERVICE_URL: z.string().default("http://localhost:8080"),
+ HTML_TO_MARKDOWN_SERVICE_URL: z.string().optional(),
SMART_SCRAPE_API_URL: z.string().optional(),
// PDF Processing