feature: debug .env.development.local.example for moonraker connection
Signed-off-by: meteyou <meteyou@gmail.com>
This commit is contained in:
1 parent
fe385d1558
commit
6da293b494
4 files changed
+14
-9
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# hostname or ip from the moonraker instance
|
||||
VUE_APP_HOSTNAME=printer.local
|
||||
|
||||
# port from the moonraker instance
|
||||
VUE_APP_PORT=7125
|
||||
|
||||
# reconnect interval in ms
|
||||
VUE_APP_RECONNECT_INTERVAL=5000
|
||||
@@ -10,3 +10,4 @@ temp
|
||||
.versions
|
||||
.changelog
|
||||
package-lock.json
|
||||
*.local
|
||||
+2
-6
@@ -1,7 +1,3 @@
|
||||
{
|
||||
"socket": {
|
||||
"hostname": "voron250.local",
|
||||
"port": 80,
|
||||
"metadataRequestDelay": 2000
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,9 +4,9 @@ import getters from './getters'
|
||||
|
||||
const getDefaultState = () => {
|
||||
return {
|
||||
hostname: window.location.hostname,
|
||||
port: window.location.port,
|
||||
reconnectInterval: 5000,
|
||||
hostname: process.env.VUE_APP_HOSTNAME || window.location.hostname,
|
||||
port: process.env.VUE_APP_PORT || window.location.port,
|
||||
reconnectInterval: process.env.VUE_APP_RECONNECT_INTERVAL || 5000,
|
||||
isConnected: false,
|
||||
|
||||
loadings: []
|
||||
|
||||
Reference in new issue
Block a user