Added Reverse Proxy Support to Vite

This commit is contained in:
Nicole Rappe 2025-05-03 08:15:33 -06:00
parent cf8acaf9e7
commit 03cc82b305

View File

@ -8,6 +8,12 @@ export default defineConfig({
server: {
open: true,
host: true, // <-- allows LAN access and shows LAN IP
strictPort: true, // <-- Ensures that the port number never changes (Good for Reverse Proxies)
allowedHosts: [
'localhost',
'127.0.0.1',
'borealis.bunny-lab.io'
],
proxy: {
'/api': 'http://localhost:5000',
'/socket.io': {