use import.meta.env.BASE_URL to load icons so they work in the CMS which has a different base url

This commit is contained in:
Jacob Overgaard
2023-02-13 09:31:39 +01:00
parent 57ba1e2d51
commit 132acb5810
3 changed files with 3 additions and 12 deletions

View File

@@ -63,7 +63,7 @@ const generateJSON = (icons) => {
const iconDescriptors = icons.map((icon) => {
return {
name: `umb:${icon.name}`,
path: `/icons/${icon.iconFileName}.js`,
path: `icons/${icon.iconFileName}.js`,
};
});