mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
sync: developer is in /dist now
This commit is contained in:
parent
e0b9072129
commit
8b1a935c93
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user