24 lines
466 B
TypeScript
24 lines
466 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
base: '/ui/',
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://pedal.local',
|
|
'/ws': {
|
|
target: 'ws://pedal.local',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
})
|