File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
vue-component-dev-client/client
vue-component-dev-server/server Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ if(!Response.prototype.setEncoding) {
83
83
84
84
Meteor . startup ( function ( ) {
85
85
// Dev client
86
- let port = window . __hot_port__ || 3003 ;
86
+ let port = __meteor_runtime_config__ . VUE_DEV_SERVER_PORT || 3003 ;
87
87
console . log ( '[HMR] Dev client port' , port ) ;
88
88
let _socket = require ( 'socket.io-client' ) ( `${ Meteor . absoluteUrl ( ) . replace ( / : \d + \/ / gi, '' ) } :${ port } ` ) ;
89
89
window . __dev_client__ = _socket ;
Original file line number Diff line number Diff line change @@ -9,6 +9,4 @@ function getMeteorPort() {
9
9
const PORT = parseInt ( process . env . HMR_PORT ) || parseInt ( process . env . VUE_DEV_SERVER_PORT ) || getMeteorPort ( ) || 3003 ;
10
10
11
11
// Client-side config
12
- WebAppInternals . addStaticJs ( `
13
- window.__hot_port__ = ${ PORT } ;
14
- ` ) ;
12
+ __meteor_runtime_config__ . VUE_DEV_SERVER_PORT = PORT ;
You can’t perform that action at this time.
0 commit comments