Spaces:
Running
Running
Jimin Huang
commited on
Commit
·
3ea28e6
1
Parent(s):
5e1f1c3
Change settings
Browse files- vite.config.js +10 -7
- 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 |
-
|
| 8 |
-
host: true,
|
| 9 |
-
port:
|
| 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 |
-
|
| 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 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
'
|
| 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 |
})
|