Spaces:
Running
Running
| // vite.config.js | |
| import { defineConfig } from 'vite' | |
| import vue from '@vitejs/plugin-vue' | |
| export default defineConfig({ | |
| plugins: [vue()], | |
| preview: { | |
| host: true, // listen on 0.0.0.0 | |
| port: 4173, // matches your Docker CMD | |
| // Allow the Space domain; you can list multiple hosts or use a regex | |
| allowedHosts: [ | |
| 'thefinai-agent-market-arena.hf.space', | |
| /\.hf\.space$/ // optional: allow any hf.space subdomain | |
| ], | |
| }, | |
| }) | |