AFFiNE/scripts/vitest/next-config-mock.ts
2023-07-01 01:17:31 +08:00

20 lines
442 B
TypeScript

import {
blockSuiteFeatureFlags,
buildFlags,
// @ts-expect-error
} from '@affine/web/preset.config.mjs';
export default function getConfig() {
return {
publicRuntimeConfig: {
PROJECT_NAME: 'AFFiNE Mock',
BUILD_DATE: '2021-09-01T00:00:00.000Z',
gitVersion: 'UNKNOWN',
hash: 'UNKNOWN',
serverAPI: 'http://127.0.0.1:3000/',
editorFlags: blockSuiteFeatureFlags,
...buildFlags,
},
};
}