cmziuk/vite.config.js
Cameron Redmore 20d6a8d577
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m0s
Refactor Docker setup for minimal image and update build scripts; adjust static asset serving in production
2025-08-08 17:02:32 +01:00

28 lines
No EOL
666 B
JavaScript

import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
import Icons from 'unplugin-icons/vite'
export default defineConfig({
plugins: [
tailwindcss(),
Icons({
compiler: 'web-components',
webComponents: {
autoDefine: true,
},
})
],
server: {
port: 5173,
host: 'localhost',
proxy: {
// Proxy the backend WebSocket/API on /music to the Bun server
'/music': {
target: 'http://localhost:3000',
changeOrigin: true,
ws: true,
},
},
},
})