adminizer 4.2.0-build.71 → 4.2.0-build.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.2.0-build.71",
4
+ "version": "4.2.0-build.72",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
@@ -15,7 +15,7 @@ export default function bindMediaManager(adminizer) {
15
15
  }
16
16
  });
17
17
  // Bind media manager public folder
18
- if (adminizer.config.bind?.public)
18
+ if (adminizer.config.bind?.public && adminizer.config.mediamanager?.fileStoragePath)
19
19
  adminizer.app.use(`/public`, serveStatic(adminizer.config.mediamanager.fileStoragePath));
20
20
  // Bind file icons
21
21
  adminizer.app.use(`${adminizer.config.routePrefix}/fileicons`, serveStatic(path.join(import.meta.dirname, '../fileicons')));