Spaces:
Sleeping
Sleeping
Update vite.config.ts
Browse files- vite.config.ts +10 -0
vite.config.ts
CHANGED
|
@@ -5,4 +5,14 @@ import tailwindcss from "@tailwindcss/vite";
|
|
| 5 |
// https://vite.dev/config/
|
| 6 |
export default defineConfig({
|
| 7 |
plugins: [react(), tailwindcss()],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
});
|
|
|
|
| 5 |
// https://vite.dev/config/
|
| 6 |
export default defineConfig({
|
| 7 |
plugins: [react(), tailwindcss()],
|
| 8 |
+
preview: {
|
| 9 |
+
allowedHosts: ['.hf.space'], // Allow all HuggingFace Space domains
|
| 10 |
+
host: '0.0.0.0',
|
| 11 |
+
port: 7860
|
| 12 |
+
},
|
| 13 |
+
server: {
|
| 14 |
+
allowedHosts: ['.hf.space'],
|
| 15 |
+
host: '0.0.0.0',
|
| 16 |
+
port: 7860
|
| 17 |
+
}
|
| 18 |
});
|