Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

feat: add configurable max workers

Dan Jacobsen21578bac8d3a
diff --git a/.env.sample b/.env.sample
index 22bda557..b02dc446 100644
--- a/.env.sample
+++ b/.env.sample
@@ -33,6 +33,7 @@ SCREENSHOT_MAX_BUFFER=
READABILITY_MAX_BUFFER=
PREVIEW_MAX_BUFFER=
IMPORT_LIMIT=
+MAX_WORKERS=
# AWS S3 Settings
SPACES_KEY=
diff --git a/playwright.config.ts b/playwright.config.ts
index b90f7d74..265a2748 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -15,7 +15,7 @@ export default defineConfig({
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
- workers: process.env.CI ? 1 : undefined,
+ workers: process.env.CI ? 1 : Number(process.env.MAX_WORKERS) || undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */