feat:
--ADDED DEAD LOCK AND DATABASE SIZE UI
This commit is contained in:
1 parent
662611e10a
commit
a47f8e52cb
6 files changed
+214
-4
No files matched your search
+16
-4
@@ -1,7 +1,19 @@
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '')
|
||||
|
||||
return {
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/database-api': {
|
||||
target: env.VITE_DATABASE_API_BASE_URL || 'http://127.0.0.1:9000',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/database-api/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user