CorrSteer / demo /vite.config.ts
seonglae's picture
fix: add hf space host to vite config
de587ea
raw
history blame contribute delete
469 Bytes
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
define: {
__API_BASE_URL__: JSON.stringify(process.env.VITE_API_BASE_URL || "http://localhost:5174"),
},
server: {
host: "0.0.0.0",
port: 7860,
allowedHosts: [
"seonglae-corrsteer.hf.space"
]
},
})