Skip to content

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.

build: remove image preview config (#2861)

Alex Yang53488a149858
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
index ae4963210a..b3e7fc8f97 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -60,7 +60,6 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
API_SERVER_PROFILE: prod
ENABLE_TEST_PROPERTIES: false
- ENABLE_IMAGE_PREVIEW_MODAL: true
ENABLE_BOOKMARK_OPERATION: true
RELEASE_VERSION: ${{ needs.set-build-version.outputs.version }}
diff --git a/.github/workflows/release-desktop-app.yml b/.github/workflows/release-desktop-app.yml
index 303e332c8d..bc0f789bc2 100644
--- a/.github/workflows/release-desktop-app.yml
+++ b/.github/workflows/release-desktop-app.yml
@@ -56,7 +56,6 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
API_SERVER_PROFILE: prod
ENABLE_TEST_PROPERTIES: false
- ENABLE_IMAGE_PREVIEW_MODAL: ${{ github.event.inputs.build-type == 'stable' && false || true }}
ENABLE_BOOKMARK_OPERATION: true
RELEASE_VERSION: ${{ github.event.inputs.version }}
diff --git a/apps/web/preset.config.mjs b/apps/web/preset.config.mjs
index 95317ce1f9..d4d198c3d6 100644
--- a/apps/web/preset.config.mjs
+++ b/apps/web/preset.config.mjs
@@ -24,9 +24,6 @@ export const buildFlags = {
(process.env.ENABLE_ALL_PAGE_FILTER
? process.env.ENABLE_ALL_PAGE_FILTER === 'true'
: false),
- enableImagePreviewModal: process.env.ENABLE_IMAGE_PREVIEW_MODAL
- ? process.env.ENABLE_IMAGE_PREVIEW_MODAL === 'true'
- : true,
enableTestProperties: process.env.ENABLE_TEST_PROPERTIES
? process.env.ENABLE_TEST_PROPERTIES === 'true'
: true,
diff --git a/nx.json b/nx.json
index b9b56d9851..bb2db78183 100644
--- a/nx.json
+++ b/nx.json
@@ -48,9 +48,6 @@
{
"env": "ENABLE_ALL_PAGE_FILTER"
},
- {
- "env": "ENABLE_IMAGE_PREVIEW_MODAL"
- },
{
"env": "ENABLE_TEST_PROPERTIES"
},
diff --git a/packages/env/src/config.ts b/packages/env/src/config.ts
index 39183dd34b..54fb3d72d5 100644
--- a/packages/env/src/config.ts
+++ b/packages/env/src/config.ts
@@ -41,7 +41,6 @@ export const buildFlagsSchema = z.object({
*/
enableAllPageFilter: z.boolean(),
enablePlugin: z.boolean(),
- enableImagePreviewModal: z.boolean(),
enableTestProperties: z.boolean(),
enableBroadcastChannelProvider: z.boolean(),
enableDebugPage: z.boolean(),