Spaces:
Sleeping
Sleeping
File size: 901 Bytes
a27839e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | import { defineConfig } from "vite";
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";
import react from "@vitejs/plugin-react-swc";
import path from "path";
export default defineConfig(() => ({
server: {
host: "::",
port: 7860,
strictPort: true,
// Allow Hugging Face Spaces hosts and custom domains
allowedHosts: [
"localhost",
"127.0.0.1",
"rocky1410-frontpilot.hf.space",
".hf.space",
"frontpilot.site"
]
},
preview: {
host: "::",
port: 7860,
strictPort: true,
// Allow Hugging Face Spaces hosts and custom domains
allowedHosts: [
"localhost",
"127.0.0.1",
"rocky1410-frontpilot.hf.space",
".hf.space",
"frontpilot.site"
]
},
plugins: [dyadComponentTagger(), react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})); |