mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-20 23:21:36 +03:00
21 lines
405 B
TypeScript
21 lines
405 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import UnoCSS from 'unocss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
UnoCSS(), // must be BEFORE react()
|
|
react()
|
|
],
|
|
// ...
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
}
|
|
}
|
|
}
|
|
})
|