Spaces:
Sleeping
Sleeping
Update vite.config.ts
Browse files- vite.config.ts +3 -1
vite.config.ts
CHANGED
|
@@ -3,12 +3,14 @@ import react from "@vitejs/plugin-react-swc";
|
|
| 3 |
import path from "path";
|
| 4 |
import { componentTagger } from "lovable-tagger";
|
| 5 |
|
| 6 |
-
// https://vitejs.dev/config/
|
| 7 |
export default defineConfig(({ mode }) => ({
|
| 8 |
server: {
|
| 9 |
host: "::",
|
| 10 |
port: 8080,
|
| 11 |
},
|
|
|
|
|
|
|
|
|
|
| 12 |
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
|
| 13 |
resolve: {
|
| 14 |
alias: {
|
|
|
|
| 3 |
import path from "path";
|
| 4 |
import { componentTagger } from "lovable-tagger";
|
| 5 |
|
|
|
|
| 6 |
export default defineConfig(({ mode }) => ({
|
| 7 |
server: {
|
| 8 |
host: "::",
|
| 9 |
port: 8080,
|
| 10 |
},
|
| 11 |
+
preview: {
|
| 12 |
+
allowedHosts: ["triflix-pattanshetti.hf.space"], // Add this block
|
| 13 |
+
},
|
| 14 |
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
|
| 15 |
resolve: {
|
| 16 |
alias: {
|