Glif-Lora-Autocaption / vite.config.js
saq1b's picture
update vite.config.js to add allowedHosts for server configuration
0121296
raw
history blame
304 Bytes
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 7860, // Default port for HuggingFace Spaces
host: '0.0.0.0',
allowedHosts: ["saq1b-glif-lora-autocaption.hf.space"]
}
});