From 81909b1ec9d1efcefc02b445b5da4b6ab70c88ea Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Tue, 17 Nov 2026 15:13:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(site):=20=E5=AE=98=E7=BD=91=E6=8E=A5?= =?UTF-8?q?=E5=85=A5=E7=BA=BF=E4=B8=8A=E6=8E=A5=E5=8F=A3=E5=B9=B6=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E7=AB=99=E7=82=B9=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 8 ++++++++ src/shared/data/company.js | 2 +- src/shared/lib/seo.js | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..b85ba71 --- /dev/null +++ b/.env.production @@ -0,0 +1,8 @@ +# Author: fruit.com.cn +# 生产构建(vite build 默认 mode=production)专用:官网直连线上客户端接口。 +# 本地开发仍读 .env,指向 127.0.0.1:8081,两者互不影响。 + +VITE_API_BASE_URL=https://drama-api.frostgiant.vip + +# 媒资(封面/视频)与接口同域,避免站点域名下 /files 404。 +VITE_MEDIA_BASE_URL=https://drama-api.frostgiant.vip diff --git a/src/shared/data/company.js b/src/shared/data/company.js index f251458..b424590 100644 --- a/src/shared/data/company.js +++ b/src/shared/data/company.js @@ -6,7 +6,7 @@ export const COMPANY = { address: 'Komplek Ruko Mega Grosir Cempaka Mas Blok C No. 6, Jakarta Pusat 10640, Indonesia', phone: '+62 821 7000 5974', phoneHref: '+6282170005974', - email: import.meta.env.VITE_CONTACT_EMAIL || 'contact@ymbdrama.com', + email: import.meta.env.VITE_CONTACT_EMAIL || 'ymbtechnologyindonesia@gmail.com', nib: '1240000631056', country: 'Indonesia', established: '2024', diff --git a/src/shared/lib/seo.js b/src/shared/lib/seo.js index 0b43cb0..fa5ff42 100644 --- a/src/shared/lib/seo.js +++ b/src/shared/lib/seo.js @@ -1,5 +1,5 @@ // Author: fruit.com.cn -const SITE_URL = (import.meta.env.VITE_SITE_URL || 'https://www.ymbdrama.com').replace(/\/$/, ''); +const SITE_URL = (import.meta.env.VITE_SITE_URL || 'https://frostgiant.vip').replace(/\/$/, ''); export function applySeo(locale, route = '') { document.title = locale.title;