26 lines
566 B
JavaScript
26 lines
566 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
hmr: {
|
|
// Caddy terminates TLS and proxies WebSocket upgrades from the public dev URL.
|
|
host: 'elias.reynafamily.com',
|
|
protocol: 'wss',
|
|
clientPort: 443,
|
|
overlay: true
|
|
},
|
|
cors: true
|
|
},
|
|
preview: {
|
|
host: '0.0.0.0',
|
|
port: 4173
|
|
},
|
|
clearScreen: false,
|
|
// For file:// fallback if needed, built files use relative paths
|
|
base: './'
|
|
})
|