From ecbdffcea4b5b196f1bbfd92f3952e352c82c58e Mon Sep 17 00:00:00 2001 From: mamamiyear Date: Fri, 10 Jul 2026 09:42:25 +0800 Subject: [PATCH] chore: configure landing base path --- promo/landing/.env.example | 1 + promo/landing/index.html | 2 +- promo/landing/vite.config.ts | 19 ++++++++++++------- 3 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 promo/landing/.env.example diff --git a/promo/landing/.env.example b/promo/landing/.env.example new file mode 100644 index 0000000..4e34f63 --- /dev/null +++ b/promo/landing/.env.example @@ -0,0 +1 @@ +VITE_BASE_PATH=/ diff --git a/promo/landing/index.html b/promo/landing/index.html index dc613ec..3045ddb 100644 --- a/promo/landing/index.html +++ b/promo/landing/index.html @@ -2,7 +2,7 @@ - + { + const env = loadEnv(mode, ".", ""); + + return { + base: env.VITE_BASE_PATH || "/", + plugins: [react(), tailwindcss()], + server: { + port: 5273, + open: true, + }, + }; });