kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Removed now useless BACKEND_URL setting
rodzic
50af04345b
commit
827e4ff982
1
.env.dev
1
.env.dev
|
@ -1,4 +1,3 @@
|
|||
BACKEND_URL=http://localhost:6001
|
||||
API_AUTHENTICATION_REQUIRED=True
|
||||
CACHALOT_ENABLED=False
|
||||
RAVEN_ENABLED=false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = {
|
||||
NODE_ENV: '"production"',
|
||||
BACKEND_URL: '"' + (process.env.BACKEND_URL || '/') + '"'
|
||||
BACKEND_URL: '"/"'
|
||||
}
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
class Config {
|
||||
constructor () {
|
||||
this.BACKEND_URL = process.env.BACKEND_URL
|
||||
if (this.BACKEND_URL === '/') {
|
||||
this.BACKEND_URL = window.location.protocol + '//' + window.location.hostname + ':' + window.location.port
|
||||
}
|
||||
if (this.BACKEND_URL.slice(-1) !== '/') {
|
||||
this.BACKEND_URL += '/'
|
||||
}
|
||||
this.API_URL = this.BACKEND_URL + 'api/v1/'
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue