Jimin Huang commited on
Commit
3ea28e6
·
1 Parent(s): 5e1f1c3

Change settings

Browse files
Files changed (2) hide show
  1. vite.config.js +10 -7
  2. vite.config.ts +10 -12
vite.config.js CHANGED
@@ -1,13 +1,16 @@
 
1
  import { defineConfig } from 'vite'
2
  import vue from '@vitejs/plugin-vue'
3
 
4
- // NOTE: keep it minimal; env vars will be injected as import.meta.env.VITE_*
5
  export default defineConfig({
6
  plugins: [vue()],
7
- server: {
8
- host: true,
9
- port: 5173
10
- }
 
 
 
 
 
11
  })
12
-
13
-
 
1
+ // vite.config.js
2
  import { defineConfig } from 'vite'
3
  import vue from '@vitejs/plugin-vue'
4
 
 
5
  export default defineConfig({
6
  plugins: [vue()],
7
+ preview: {
8
+ host: true, // listen on 0.0.0.0
9
+ port: 4173, // matches your Docker CMD
10
+ // Allow the Space domain; you can list multiple hosts or use a regex
11
+ allowedHosts: [
12
+ 'thefinai-agent-market-arena.hf.space',
13
+ /\.hf\.space$/ // optional: allow any hf.space subdomain
14
+ ],
15
+ },
16
  })
 
 
vite.config.ts CHANGED
@@ -1,18 +1,16 @@
1
- import { fileURLToPath, URL } from 'node:url'
2
-
3
  import { defineConfig } from 'vite'
4
  import vue from '@vitejs/plugin-vue'
5
- import vueDevTools from 'vite-plugin-vue-devtools'
6
 
7
- // https://vite.dev/config/
8
  export default defineConfig({
9
- plugins: [
10
- vue(),
11
- vueDevTools(),
12
- ],
13
- resolve: {
14
- alias: {
15
- '@': fileURLToPath(new URL('./src', import.meta.url))
16
- },
 
17
  },
18
  })
 
1
+ // vite.config.js
 
2
  import { defineConfig } from 'vite'
3
  import vue from '@vitejs/plugin-vue'
 
4
 
 
5
  export default defineConfig({
6
+ plugins: [vue()],
7
+ preview: {
8
+ host: true, // listen on 0.0.0.0
9
+ port: 4173, // matches your Docker CMD
10
+ // Allow the Space domain; you can list multiple hosts or use a regex
11
+ allowedHosts: [
12
+ 'thefinai-agent-market-arena.hf.space',
13
+ /\.hf\.space$/ // optional: allow any hf.space subdomain
14
+ ],
15
  },
16
  })