mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-05-06 11:15:18 +00:00
feat: new ui with greyhaven design system
This commit is contained in:
24
ui/vite.config.ts
Normal file
24
ui/vite.config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import path from 'node:path'
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '')
|
||||
const apiTarget = env.VITE_API_PROXY_TARGET || 'http://localhost:1250'
|
||||
return {
|
||||
base: '/v2/',
|
||||
plugins: [react(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 3001,
|
||||
proxy: {
|
||||
'/v1': { target: apiTarget, changeOrigin: true },
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user