From 415086961b256b7b514cee081f4bae3e13748423 Mon Sep 17 00:00:00 2001 From: Mplan Date: Sat, 30 May 2026 00:30:17 +0800 Subject: [PATCH] build: simplify site URL resolution --- vite.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 8a25fb2..aeca413 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,9 +13,8 @@ const publicRoutes = [ function getSiteUrl() { const explicitUrl = process.env.VITE_SITE_URL - const vercelUrl = process.env.VERCEL_PROJECT_PRODUCTION_URL - const siteUrl = explicitUrl || (vercelUrl ? `https://${vercelUrl}` : 'https://cloud.catpl.dev') - return siteUrl.replace(/\/$/, '') + const siteUrl = explicitUrl + return siteUrl } function seoFilesPlugin() {