Added Reverse Proxy Support to Vite
This commit is contained in:
parent
cf8acaf9e7
commit
03cc82b305
@ -8,6 +8,12 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
open: true,
|
open: true,
|
||||||
host: true, // <-- allows LAN access and shows LAN IP
|
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: {
|
proxy: {
|
||||||
'/api': 'http://localhost:5000',
|
'/api': 'http://localhost:5000',
|
||||||
'/socket.io': {
|
'/socket.io': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user