path correction

This commit is contained in:
sandhiya-hepl
2026-07-15 17:56:11 +05:30
parent 2d1ce59b9c
commit 35e439e69c
7 changed files with 58 additions and 8 deletions
+5 -3
View File
@@ -2,8 +2,10 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
export default defineConfig({
base: '/citpl_website/',
// Dev: http://localhost:5173/admin.html (base "/")
// Prod: https://demo.cavinkare.in/citpl_website/admin.html (base "/citpl_website/")
export default defineConfig(({ command }) => ({
base: command === 'serve' ? '/' : '/citpl_website/',
plugins: [react()],
server: {
proxy: {
@@ -20,4 +22,4 @@ export default defineConfig({
},
},
},
})
}))