feat: init @affine/env (#1243)

This commit is contained in:
Himself65
2023-03-01 19:26:55 -06:00
committed by GitHub
parent 71a0951c77
commit 1abab690af
19 changed files with 338 additions and 137 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import '@blocksuite/editor/themes/affine.css';
import '../styles/globals.css';
import { config, setupGlobal } from '@affine/env';
import { createI18n, I18nextProvider } from '@affine/i18n';
import createCache from '@emotion/cache';
import { CacheProvider } from '@emotion/react';
@@ -20,7 +21,8 @@ import { AffineSWRConfigProvider } from '../providers/AffineSWRConfigProvider';
import { ModalProvider } from '../providers/ModalProvider';
import { ThemeProvider } from '../providers/ThemeProvider';
import { NextPageWithLayout } from '../shared';
import { config } from '../shared/env';
setupGlobal();
type AppPropsWithLayout = AppProps & {
Component: NextPageWithLayout;