sync: developer is in /dist now

This commit is contained in:
KernelDeimos 2024-10-20 20:30:11 -04:00
parent e0b9072129
commit 8b1a935c93

View File

@ -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);