From bf97127b3dea8fcd4cd4f64c50ad7d2a9c60c658 Mon Sep 17 00:00:00 2001 From: Ku6epXBOCTuK Date: Mon, 7 Sep 2026 02:06:17 +0500 Subject: [PATCH] ci: add vercel deployment --- .gitignore | 2 ++ astro.config.mjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 017d9c3..1158309 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ pnpm-debug.log* .DS_Store .env .env.production + +.vercel diff --git a/astro.config.mjs b/astro.config.mjs index e048d6a..68e6e66 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,5 +6,5 @@ const mode = process.argv.includes('build') ? 'production' : 'development' const env = loadEnv(mode, process.cwd(), '') export default defineConfig({ - base: env.PUBLIC_BASE_PATH || '/', + base: process.env.VERCEL ? '/' : (env.PUBLIC_BASE_PATH || '/'), })