Skip to content

Commit cda63a3

Browse files
committed
Update URL resolver to support home VFS (#106)
1 parent ce75754 commit cda63a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/url.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ export const urlResolver = configuration => {
5252
metadata.type === 'icons' ? 'icons' : 'apps'
5353
);
5454

55-
url = `${type}/${metadata.name}${path}`;
55+
if (metadata._user) {
56+
url = `vfs/readfile?path=${encodeURIComponent(`home:/.packages/${metadata.name}${path}`)}`;
57+
} else {
58+
url = `${type}/${metadata.name}${path}`;
59+
}
5660
}
5761

5862
return prefix

0 commit comments

Comments
 (0)