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
+7
View File
@@ -1,9 +1,15 @@
import { fileURLToPath } from 'node:url';
import { testResultDir } from '@affine-test/kit/playwright';
import type {
PlaywrightTestConfig,
PlaywrightWorkerOptions,
} from '@playwright/test';
const runtimeConfigPath = fileURLToPath(
new URL('./runtime-config.json', import.meta.url)
);
const config: PlaywrightTestConfig = {
testDir: './e2e',
fullyParallel: !process.env.CI,
@@ -49,6 +55,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',
+9
View File
@@ -0,0 +1,9 @@
{
"indexer": {
"enabled": true,
"provider": {
"type": "embedded",
"endpoint": ""
}
}
}