path correction
This commit is contained in:
+5
-3
@@ -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({
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user