Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dev server port (default 5000). Use http://localhost:5000 if VITE_HTTPS is false.
VITE_PORT=5000
# Dev server port (default 4000). Use http://localhost:4000 if VITE_HTTPS is false.
VITE_PORT=4000
VITE_OVERRIDE_ROS_BRIDGE_SERVER_URL=

# Set false for local dev without SSL (avoids ERR_SSL_PROTOCOL_ERROR). Set true and add certs for HTTPS.
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default defineConfig(({ mode }) => {
https,
host: true,
allowedHosts,
port: parseInt(env.VITE_PORT || "5000"),
port: parseInt(env.VITE_PORT || "4000"),
hmr: https
? { protocol: "wss", clientPort: parseInt(env.VITE_PORT || "5000") }
? { protocol: "wss", clientPort: parseInt(env.VITE_PORT || "4000") }
: undefined,
proxy: {
"^/rosbridge": {
Expand Down