Update build configuration for Vercel deployment on beta branch

This commit is contained in:
Vishva
2026-07-23 13:11:31 +05:30
parent 1b40a451b1
commit 10f3db88aa
5 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -6,9 +6,10 @@ import { resolve } from 'path'
// Prod: https://demo.cavinkare.in/citpl_website/admin.html (base "/citpl_website/")
export default defineConfig((configEnv) => {
const isDev = configEnv.command === 'serve'
const isVercel = Boolean(process.env.VERCEL)
return {
base: isDev ? '/' : '/citpl_website/',
base: (isDev || isVercel) ? '/' : '/citpl_website/',
plugins: [react()],
server: {
proxy: {