FrontPilot / vite.config.ts
[dyad]
Init Dyad app
a27839e
raw
history blame contribute delete
901 Bytes
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"),
},
},
}));