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 || '/'), })