Skip to content
Snippets Groups Projects
Commit 24ee2b34 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merge branch 'upload-fix' into 'main'

fix(*): fix uploads not working when client host is 0.0.0.0

See merge request kotahi/kotahi!159
parents 86799a2c 77fa2f78
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,8 @@ module.exports = {
theme: process.env.PUBSWEET_THEME,
baseUrl: deferConfig(cfg => {
const { protocol, host, port } = cfg['pubsweet-client']
return `${protocol}://${host}${port ? `:${port}` : ''}`
const hostname = host === '0.0.0.0' ? 'localhost' : host
return `${protocol}://${hostname}${port ? `:${port}` : ''}`
}),
},
'pubsweet-component-xpub-dashboard': {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment