refactor!: remove next.js (#3267)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-18 16:53:10 +00:00
1 parent 79227a1e7c
commit 47f12f77f2
296 files changed
+4115 -3617

No files matched your search

+8
View File
@@ -1,3 +1,11 @@
import { setupGlobal } from '@affine/env/global';
import { getRuntimeConfig } from '../../apps/core/.webpack/runtime-config';
globalThis.runtimeConfig = getRuntimeConfig({
distribution: 'browser',
mode: 'development',
channel: 'canary',
});
setupGlobal();
-21
View File
@@ -1,21 +0,0 @@
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',
appVersion: '0.0.0',
editorVersion: '0.0.0',
serverAPI: 'http://127.0.0.1:3000/',
editorFlags: blockSuiteFeatureFlags,
...buildFlags,
},
};
}