From 5e2ac2f95372e70f549040fc1cb46979acb28de0 Mon Sep 17 00:00:00 2001 From: loicsaintroch Date: Thu, 10 Dec 2015 18:34:20 +0100 Subject: [PATCH] Do not make the Studio URL configurable --- lib/configuration/hooks/studio/index.js | 6 +++--- lib/configuration/index.js | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/configuration/hooks/studio/index.js b/lib/configuration/hooks/studio/index.js index 5431258dd8..434cc2bb63 100644 --- a/lib/configuration/hooks/studio/index.js +++ b/lib/configuration/hooks/studio/index.js @@ -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, diff --git a/lib/configuration/index.js b/lib/configuration/index.js index a47534e0c6..bc7eaf665a 100755 --- a/lib/configuration/index.js +++ b/lib/configuration/index.js @@ -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: ''