From e88ee4e5957fb173e5e180b02ae5e0430071d0b4 Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Fri, 21 Aug 2020 18:22:40 -0300 Subject: [PATCH] :recycle: remove /mobile endpoints from server --- server/server.js | 4 ---- server/views/index.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/server/server.js b/server/server.js index c9794925..d82aa6d8 100644 --- a/server/server.js +++ b/server/server.js @@ -132,10 +132,6 @@ app.get( // isomorphic rendering app.use('/', serverRoutes); -if (process.env.MOBILE_ENABLED) { - app.use('/mobile', serverRoutes); -} - app.use(assetRoutes); app.use('/', embedRoutes); diff --git a/server/views/index.js b/server/views/index.js index 6aca8975..ecc269c0 100644 --- a/server/views/index.js +++ b/server/views/index.js @@ -33,7 +33,7 @@ export function renderIndex() { window.process.env.UI_COLLECTIONS_ENABLED = ${process.env.UI_COLLECTIONS_ENABLED === 'false' ? false : true}; window.process.env.UPLOAD_LIMIT = ${process.env.UPLOAD_LIMIT ? `${process.env.UPLOAD_LIMIT}` : undefined}; window.process.env.MOBILE_ENABLED = ${process.env.MOBILE_ENABLED ? `${process.env.MOBILE_ENABLED}` : undefined}; - window.process.env.TRANSLATIONS_ENABLED = ${process.env.TRANSLATIONS_ENABLED === 'true' ? true :false}; + window.process.env.TRANSLATIONS_ENABLED = ${process.env.TRANSLATIONS_ENABLED === 'true' ? true : false};