mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 04:51:49 +08:00
refactor(server): indexer & worker & sync perf (#15504)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"indexer": {
|
||||
"enabled": true,
|
||||
"provider": {
|
||||
"type": "embedded",
|
||||
"endpoint": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user