Update build configuration for Vercel deployment on beta branch
This commit is contained in:
+2
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user