add external url to allowed hosts

This commit is contained in:
UGA Innovation Factory
2025-12-19 16:05:48 -05:00
parent c5d5956daf
commit 5ec8e3d9de
4 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ export default defineConfig({
], ],
server: { server: {
// Allow connections from the VM hostname and any other host/IP // Allow connections from the VM hostname and any other host/IP
allowedHosts: ['exp-dash', 'localhost'], allowedHosts: ['exp-dash', 'localhost', 'usda-dash.ugaif.com'],
// Proxy API calls from the browser to the API container via the compose service name // Proxy API calls from the browser to the API container via the compose service name
proxy: { proxy: {
'/api': { '/api': {

View File

@@ -22,7 +22,7 @@ export default defineConfig({
server: { server: {
port: 3003, port: 3003,
host: '0.0.0.0', host: '0.0.0.0',
allowedHosts: ['exp-dash', 'localhost'], allowedHosts: ['exp-dash', 'localhost', 'usda-dash.ugaif.com'],
cors: true cors: true
}, },
build: { build: {

View File

@@ -23,7 +23,7 @@ export default defineConfig({
server: { server: {
port: 3001, port: 3001,
host: '0.0.0.0', host: '0.0.0.0',
allowedHosts: ['exp-dash', 'localhost'], allowedHosts: ['exp-dash', 'localhost', 'usda-dash.ugaif.com'],
cors: true cors: true
}, },
build: { build: {

View File

@@ -22,7 +22,7 @@ export default defineConfig({
server: { server: {
port: 3002, port: 3002,
host: '0.0.0.0', host: '0.0.0.0',
allowedHosts: ['exp-dash', 'localhost'], allowedHosts: ['exp-dash', 'localhost', 'usda-dash.ugaif.com'],
cors: true cors: true
}, },
build: { build: {