Do not make the Studio URL configurable

This commit is contained in:
loicsaintroch 2015-12-10 18:34:20 +01:00
parent fb7c834f2b
commit 5e2ac2f953
2 changed files with 3 additions and 8 deletions

View File

@ -43,13 +43,13 @@ module.exports = function (strapi) {
const _self = this; const _self = this;
if (_.isPlainObject(strapi.config.studio) && !_.isEmpty(strapi.config.studio) && strapi.config.studio.enabled === true && strapi.config.environment === 'development') { 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, reconnectionDelay: 2000,
reconnectionDelayMax: 5000, reconnectionDelayMax: 5000,
reconnectionAttempts: 5 reconnectionAttempts: 5
}); });
const socket = io.connect(strapi.config.studio.url, { const socket = io.connect('http://studio.strapi.io', {
'reconnection': true, 'reconnection': true,
'force new connection': true, 'force new connection': true,
'transports': [ 'transports': [
@ -455,7 +455,7 @@ module.exports = function (strapi) {
preambleCRLF: true, preambleCRLF: true,
postambleCRLF: true, postambleCRLF: true,
json: true, json: true,
uri: strapi.config.studio.url + '/socket/download', uri: 'http://studio.strapi.io/socket/download',
encoding: null, encoding: null,
body: { body: {
token: strapi.token, token: strapi.token,

View File

@ -81,11 +81,6 @@ module.exports = function (strapi) {
templates: 'templates' templates: 'templates'
}, },
// Add the Studio URL.
studio: {
url: 'http://studio.strapi.io'
},
// Start off needed empty objects and strings. // Start off needed empty objects and strings.
routes: {}, routes: {},
frontendUrl: '' frontendUrl: ''