saq1b commited on
Commit
0121296
·
1 Parent(s): cb8fef2

update vite.config.js to add allowedHosts for server configuration

Browse files
Files changed (1) hide show
  1. vite.config.js +6 -5
vite.config.js CHANGED
@@ -2,9 +2,10 @@ import { defineConfig } from 'vite';
2
  import react from '@vitejs/plugin-react';
3
 
4
  export default defineConfig({
5
- plugins: [react()],
6
- server: {
7
- port: 7860, // Default port for HuggingFace Spaces
8
- host: '0.0.0.0'
9
- }
 
10
  });
 
2
  import react from '@vitejs/plugin-react';
3
 
4
  export default defineConfig({
5
+ plugins: [react()],
6
+ server: {
7
+ port: 7860, // Default port for HuggingFace Spaces
8
+ host: '0.0.0.0',
9
+ allowedHosts: ["saq1b-glif-lora-autocaption.hf.space"]
10
+ }
11
  });