refactor(server): indexer & worker & sync perf (#15504)

This commit is contained in:
DarkSky
2026-08-21 08:11:37 +08:00
committed by GitHub
parent 8c9aad9a9b
commit c57004ea2c
259 changed files with 16530 additions and 17793 deletions
@@ -1,7 +1,13 @@
import { fileURLToPath } from 'node:url';
import { testResultDir } from '@affine-test/kit/playwright';
import type { PlaywrightTestConfig } from '@playwright/test';
// import { devices } from '@playwright/test';
const runtimeConfigPath = fileURLToPath(
new URL('./runtime-config.json', import.meta.url)
);
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
@@ -45,6 +51,7 @@ const config: PlaywrightTestConfig = {
'postgresql://affine:affine@localhost:5432/affine',
NODE_ENV: 'test',
AFFINE_ENV: process.env.AFFINE_ENV ?? 'dev',
AFFINE_BACKEND_RUNTIME_CONFIG_PATH: runtimeConfigPath,
DEBUG: 'affine:*',
FORCE_COLOR: 'true',
DEBUG_COLORS: 'true',
@@ -0,0 +1,9 @@
{
"indexer": {
"enabled": true,
"provider": {
"type": "embedded",
"endpoint": ""
}
}
}