aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-10-21 03:58:25 +0300
committerGravatar Vitaly Takmazov2024-10-21 03:58:25 +0300
commitc7738cdc5d7a63c8cd2609a2e4df9f8d28698608 (patch)
treeb98ead732c5cc7269364f9c2a58f52e5860996e9 /vnext
parentcf5b26826731d11e3206642ea059cf9cc9054a48 (diff)
vnext: disable SSR middleware
Diffstat (limited to 'vnext')
-rw-r--r--vnext/server/index.js6
1 files changed, 3 insertions, 3 deletions
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)