From 8b1a935c9333662d1ac1f6732d86354def9001c2 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Sun, 20 Oct 2024 20:30:11 -0400 Subject: [PATCH] sync: developer is in /dist now --- src/backend/src/routers/_default.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/src/routers/_default.js b/src/backend/src/routers/_default.js index 84bf2551..c5b4d277 100644 --- a/src/backend/src/routers/_default.js +++ b/src/backend/src/routers/_default.js @@ -392,7 +392,10 @@ router.all('*', async function(req, res, next) { .add(config.defaultjs_asset_path, { allow_traversal: true }) .add('apps').add(subdomain) .build(); - if ( subdomain === 'docs' ) root += '/dist'; + const has_dist = ['docs', 'developer']; + if ( has_dist.includes(subdomain) ) { + root += '/dist'; + } root = _path.normalize(root); path = _path.normalize(path);