File size: 469 Bytes
3ea28e6
ac784c2
 
 
 
 
3ea28e6
 
 
 
 
 
 
 
 
ac784c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
    ],
  },
})