mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +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;
|
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,
|
||||||
|
@ -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: ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user