mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Do not make the Studio URL configurable
This commit is contained in:
parent
fb7c834f2b
commit
5e2ac2f953
@ -43,13 +43,13 @@ module.exports = function (strapi) {
|
||||
const _self = this;
|
||||
|
||||
if (_.isPlainObject(strapi.config.studio) && !_.isEmpty(strapi.config.studio) && strapi.config.studio.enabled === true && strapi.config.environment === 'development') {
|
||||
const manager = io.Manager(strapi.config.studio.url, {
|
||||
const manager = io.Manager('http://studio.strapi.io', {
|
||||
reconnectionDelay: 2000,
|
||||
reconnectionDelayMax: 5000,
|
||||
reconnectionAttempts: 5
|
||||
});
|
||||
|
||||
const socket = io.connect(strapi.config.studio.url, {
|
||||
const socket = io.connect('http://studio.strapi.io', {
|
||||
'reconnection': true,
|
||||
'force new connection': true,
|
||||
'transports': [
|
||||
@ -455,7 +455,7 @@ module.exports = function (strapi) {
|
||||
preambleCRLF: true,
|
||||
postambleCRLF: true,
|
||||
json: true,
|
||||
uri: strapi.config.studio.url + '/socket/download',
|
||||
uri: 'http://studio.strapi.io/socket/download',
|
||||
encoding: null,
|
||||
body: {
|
||||
token: strapi.token,
|
||||
|
@ -81,11 +81,6 @@ module.exports = function (strapi) {
|
||||
templates: 'templates'
|
||||
},
|
||||
|
||||
// Add the Studio URL.
|
||||
studio: {
|
||||
url: 'http://studio.strapi.io'
|
||||
},
|
||||
|
||||
// Start off needed empty objects and strings.
|
||||
routes: {},
|
||||
frontendUrl: ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user