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:
@@ -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`,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user