From 74563952dc0d25918866829f04427f447aaaa433 Mon Sep 17 00:00:00 2001 From: FamousMai <906631095@qq.com> Date: Sun, 4 May 2025 17:34:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20process.env.NEXT=5FPUBLIC=5FAPI=5FPREFIX?= =?UTF-8?q?=20=E5=9B=A0=E4=B8=BA=E8=BF=99=E4=B8=AA=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=B8=BA=E7=A9=BA=EF=BC=8C=E8=A6=81=E7=94=A8?= =?UTF-8?q?=20apiPrefix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/app/signin/normalForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/signin/normalForm.tsx b/web/app/signin/normalForm.tsx index 93ff2f262..7bde362ec 100644 --- a/web/app/signin/normalForm.tsx +++ b/web/app/signin/normalForm.tsx @@ -12,7 +12,7 @@ import cn from '@/utils/classnames' import { getSystemFeatures, invitationCheck } from '@/service/common' import { LicenseStatus, type SystemFeatures, defaultSystemFeatures } from '@/types/feature' // extend:加上 type SystemFeatures import Toast from '@/app/components/base/toast' -import { IS_CE_EDITION } from '@/config' +import { IS_CE_EDITION, apiPrefix } from '@/config' // extend : support ding_talk login import DingTalkAuth from '@/app/signin/components/dingtalk-auth' import OAuth2 from '@/app/signin/components/oauth2' // extend: add oauth2 @@ -77,7 +77,7 @@ const NormalForm = () => { } } const userAgent = navigator.userAgent.toLowerCase() - const host = process.env.NEXT_PUBLIC_API_PREFIX + const host = apiPrefix const corpId = allFeatures.ding_talk_corp_id if (userAgent.includes('dingtalk') && corpId && host) { // Extend Start DingTalk login compatible