aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2021-03-15 09:45:38 +0000
committerShpuld Shpludson <shp@cock.li>2021-03-15 09:45:38 +0000
commita00212a3bbc029439a27ba01895e01adf37a2db6 (patch)
tree7848bf740d0e081501ccb194031329ce5980d337 /config
parent184364c7e06a982b48bbe6d913f02a73dd428aef (diff)
parenta8967d85bd7ae1541f1d4e41e95fc8fa111f2360 (diff)
Merge branch 'websocket-fixes' into 'develop'
Various websocket fixes See merge request pleroma/pleroma-fe!1326
Diffstat (limited to 'config')
-rw-r--r--config/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/index.js b/config/index.js
index ccec4196..7cb87c3b 100644
--- a/config/index.js
+++ b/config/index.js
@@ -3,6 +3,11 @@ const path = require('path')
let settings = {}
try {
settings = require('./local.json')
+ if (settings.target && settings.target.endsWith('/')) {
+ // replacing trailing slash since it can conflict with some apis
+ // and that's how actual BE reports its url
+ settings.target = settings.target.replace(/\/$/, '')
+ }
console.log('Using local dev server settings (/config/local.json):')
console.log(JSON.stringify(settings, null, 2))
} catch (e) {