When I run my Vue app, the console shows:
You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See mo
If you started with vue-cli (default webpack) then this should work:
connection: process.env.NODE_ENV === 'development' ? 'ws://localhost:5000' : 'wss://myawsomeproject.org'