Spaces:
Running
Running
update vite.config.js to add allowedHosts for server configuration
Browse files- 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 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
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 |
});
|