From ed8b2d9927ccae6c50b2c186ea33a522cbd86b77 Mon Sep 17 00:00:00 2001 From: JimmFly Date: Fri, 28 Jul 2023 23:00:03 +0800 Subject: [PATCH] chore: update change log link (#3435) --- apps/core/.webpack/runtime-config.ts | 4 ++-- .../affine/setting-modal/general-setting/about/index.tsx | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/core/.webpack/runtime-config.ts b/apps/core/.webpack/runtime-config.ts index acaee1b2e7..fc3c21b52b 100644 --- a/apps/core/.webpack/runtime-config.ts +++ b/apps/core/.webpack/runtime-config.ts @@ -23,7 +23,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig { enableTestProperties: false, enableBroadcastChannelProvider: true, enableDebugPage: true, - changelogUrl: 'https://affine.pro/blog/what-is-new-affine-0717', + changelogUrl: 'https://affine.pro/blog/what-is-new-affine-0728', imageProxyUrl: 'https://workers.toeverything.workers.dev/proxy/image', enablePreloading: true, enableNewSettingModal: true, @@ -43,7 +43,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig { enableTestProperties: true, enableBroadcastChannelProvider: true, enableDebugPage: true, - changelogUrl: 'https://affine.pro/blog/what-is-new-affine-0717', + changelogUrl: 'https://github.com/toeverything/AFFiNE/releases', imageProxyUrl: 'https://workers.toeverything.workers.dev/proxy/image', enablePreloading: true, enableNewSettingModal: true, diff --git a/apps/core/src/components/affine/setting-modal/general-setting/about/index.tsx b/apps/core/src/components/affine/setting-modal/general-setting/about/index.tsx index e5f1ce8286..43ca873cc1 100644 --- a/apps/core/src/components/affine/setting-modal/general-setting/about/index.tsx +++ b/apps/core/src/components/affine/setting-modal/general-setting/about/index.tsx @@ -61,10 +61,7 @@ export const AboutAffine = () => { desc={t['View the AFFiNE Changelog.']()} style={{ cursor: 'pointer' }} onClick={() => { - window.open( - 'https://affine.pro/blog/what-is-new-affine-0717', - '_blank' - ); + window.open(runtimeConfig.changelogUrl, '_blank'); }} >