Skip to content

Commit

Permalink
feat: add web images
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Dec 20, 2024
1 parent 54c06bd commit eb55bb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/voiceflow/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<link rel="stylesheet" href="styles.css">
<!-- 配置 WebSocket URL -->
<script>
const WEBSOCKET_URL = 'ws://localhost:18080/ws'; // 可以通过环境变量或配置文件注入
const PORT = process.env.VOICEFLOW_SERVER_PORT || 80;
const WEBSOCKET_URL = `ws://localhost:${PORT}/ws`;
</script>
</head>
<body>
Expand Down

0 comments on commit eb55bb6

Please sign in to comment.