From c7738cdc5d7a63c8cd2609a2e4df9f8d28698608 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 21 Oct 2024 03:58:25 +0300 Subject: vnext: disable SSR middleware --- vnext/server/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vnext/server') diff --git a/vnext/server/index.js b/vnext/server/index.js index d58fe4c7..1fd46557 100644 --- a/vnext/server/index.js +++ b/vnext/server/index.js @@ -5,7 +5,7 @@ import config from 'config' import debug from 'debug' const log = debug('http') -import serverRenderer from './middleware/renderer' +//import serverRenderer from './middleware/renderer' import event from './middleware/event' import oembed from './middleware/oembed' import urlExpand from './middleware/urlexpand' @@ -36,7 +36,7 @@ const durov_webhook = webhookPath() if (durov_webhook) { router.post(`/api/v2/${durov_webhook}`, webhook) } -router.use('^/$', serverRenderer) +//router.use('^/$', serverRenderer) const STATIC_ROOT = config.get('service.static_root') || path.resolve(__dirname, 'public') @@ -46,7 +46,7 @@ router.use(express.static( { maxAge: '30d' }, )) -router.use('*', serverRenderer) +//router.use('*', serverRenderer) app.use(router) -- cgit v1.2.3