Skip to content

Commit cdf2d72

Browse files
ismoilovdevmlclaude
andcommitted
🔧 Configure dashboard for production deployment
- Change port from 3000 to 8084 (avoid conflict with Gitea) - Add host: 0.0.0.0 for external access - Support VITE_API_URL environment variable - Configure build output directory Dashboard now works with real RustStrom API on port 9091 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 97d068a commit cdf2d72

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ruststrom-dashboard/vite.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ import vue from '@vitejs/plugin-vue'
44
export default defineConfig({
55
plugins: [vue()],
66
server: {
7-
port: 3000,
7+
host: '0.0.0.0',
8+
port: 8084,
89
proxy: {
910
'/api': {
10-
target: "http://127.0.0.1:9091",
11+
target: process.env.VITE_API_URL || "http://127.0.0.1:9091",
1112
changeOrigin: true,
1213
rewrite: (path) => path.replace(/^\/api/, '')
1314
}
1415
}
16+
},
17+
build: {
18+
outDir: 'dist',
19+
assetsDir: 'assets'
1520
}
1621
})

0 commit comments

Comments
 (0)