mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat: improve build config (#2115)
This commit is contained in:
2
scripts/vitest/dotenv-config.ts
Normal file
2
scripts/vitest/dotenv-config.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// do nothing
|
||||
export {};
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
blockSuiteFeatureFlags,
|
||||
buildFlags,
|
||||
} from '../../apps/web/preset.config.mjs';
|
||||
|
||||
export default function getConfig() {
|
||||
return {
|
||||
publicRuntimeConfig: {
|
||||
@@ -7,9 +12,8 @@ export default function getConfig() {
|
||||
hash: 'UNKNOWN',
|
||||
editorVersion: 'UNKNOWN',
|
||||
serverAPI: 'http://127.0.0.1:3000/',
|
||||
enableLegacyCloud: true,
|
||||
enableBroadCastChannelProvider: true,
|
||||
enableDebugPage: true,
|
||||
editorFlags: blockSuiteFeatureFlags,
|
||||
...buildFlags,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user