There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
build: remove legacy cloud config (#3024)
Alex Yang70ac31b907fc
diff --git a/apps/web/preset.config.mjs b/apps/web/preset.config.mjsindex 6f598ba150..f7af4cc4bf 100644--- a/apps/web/preset.config.mjs+++ b/apps/web/preset.config.mjs@@ -23,9 +23,6 @@ const buildPreset = {enableTestProperties: false,enableBroadcastChannelProvider: true,enableDebugPage: true,- // never set this to true in stable, because legacy cloud has deprecated- // and related code will be removed in the future- enableLegacyCloud: false,changelogUrl: 'https://affine.pro/blog/whats-new-affine-0630',enablePreloading: true,enableNewSettingModal: true,@@ -42,7 +39,6 @@ const buildPreset = {enableTestProperties: true,enableBroadcastChannelProvider: true,enableDebugPage: true,- enableLegacyCloud: false,changelogUrl: 'https://affine.pro/blog/whats-new-affine-0630',enablePreloading: true,enableNewSettingModal: true,@@ -72,9 +68,6 @@ const environmentPreset = {enableTestProperties: process.env.ENABLE_TEST_PROPERTIES? process.env.ENABLE_TEST_PROPERTIES === 'true': currentBuildPreset.enableTestProperties,- enableLegacyCloud: process.env.ENABLE_LEGACY_PROVIDER- ? process.env.ENABLE_LEGACY_PROVIDER === 'true'- : currentBuildPreset.enableLegacyCloud,enableBroadcastChannelProvider: process.env.ENABLE_BC_PROVIDER? process.env.ENABLE_BC_PROVIDER !== 'false': currentBuildPreset.enableBroadcastChannelProvider,diff --git a/apps/web/src/components/affine/create-workspace-modal/index.tsx b/apps/web/src/components/affine/create-workspace-modal/index.tsxindex 6742cabdc5..b4a6974e73 100644--- a/apps/web/src/components/affine/create-workspace-modal/index.tsx+++ b/apps/web/src/components/affine/create-workspace-modal/index.tsx@@ -298,7 +298,7 @@ export const CreateWorkspaceModal = ({const onConfirmEnableCloudSyncing = useCallback((enableCloudSyncing: boolean) => {(async function () {- if (!runtimeConfig.enableLegacyCloud && enableCloudSyncing) {+ if (!runtimeConfig.enableCloud && enableCloudSyncing) {setOpenDisableCloudAlertModal(true);} else {let id = addedId;diff --git a/apps/web/src/components/affine/new-workspace-setting-detail/publish.tsx b/apps/web/src/components/affine/new-workspace-setting-detail/publish.tsxindex 0891e926be..a95332a359 100644--- a/apps/web/src/components/affine/new-workspace-setting-detail/publish.tsx+++ b/apps/web/src/components/affine/new-workspace-setting-detail/publish.tsx@@ -141,7 +141,7 @@ const PublishPanelLocal: FC<PublishPanelLocalProps> = ({</Button></SettingRow><FakePublishPanelAffine workspace={workspace} />- {runtimeConfig.enableLegacyCloud ? (+ {runtimeConfig.enableCloud ? (<EnableAffineCloudModalopen={open}onClose={() => {diff --git a/apps/web/src/components/blocksuite/workspace-header/header-right-items/share-menu.tsx b/apps/web/src/components/blocksuite/workspace-header/header-right-items/share-menu.tsxindex 8b7798260d..0da192fb23 100644--- a/apps/web/src/components/blocksuite/workspace-header/header-right-items/share-menu.tsx+++ b/apps/web/src/components/blocksuite/workspace-header/header-right-items/share-menu.tsx@@ -108,7 +108,7 @@ const LocalHeaderShareMenu: React.FC<BaseHeaderProps> = props => {};export const HeaderShareMenu: React.FC<BaseHeaderProps> = props => {- if (!runtimeConfig.enableLegacyCloud) {+ if (!runtimeConfig.enableCloud) {return null;}if (props.workspace.flavour === WorkspaceFlavour.AFFINE_CLOUD) {diff --git a/apps/web/src/components/pure/footer/index.tsx b/apps/web/src/components/pure/footer/index.tsxindex c24f59bb12..8eb8004e2c 100644--- a/apps/web/src/components/pure/footer/index.tsx+++ b/apps/web/src/components/pure/footer/index.tsx@@ -22,7 +22,7 @@ export const Footer: FC = () => {</div>}onClick={async () => {- if (!runtimeConfig.enableLegacyCloud) {+ if (!runtimeConfig.enableCloud) {setOpen(true);}}}diff --git a/packages/env/src/global.ts b/packages/env/src/global.tsindex e6d09ec207..cb452dc2bf 100644--- a/packages/env/src/global.ts+++ b/packages/env/src/global.ts@@ -62,7 +62,6 @@ export const buildFlagsSchema = z.object({enableTestProperties: z.boolean(),enableBroadcastChannelProvider: z.boolean(),enableDebugPage: z.boolean(),- enableLegacyCloud: z.boolean(),changelogUrl: z.string(),enablePreloading: z.boolean(),enableNewSettingModal: z.boolean(),