From 31bf16ea6e5beb91d1246c57b5c28dd85a918aba Mon Sep 17 00:00:00 2001 From: Rafal Dziegielewski Date: Tue, 28 Mar 2023 11:52:22 +0200 Subject: [PATCH] fix: serve components.bundle.js publicly --- src/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index 935a4b1..319515a 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -132,6 +132,8 @@ const addAdminJsAuthRoutes = (admin: AdminJS, router: Router, auth: KoaAuthOptio if (AdminJSRouter.assets.find((asset) => ctx.request.originalUrl.match(asset.path))) { await next() + } else if (AdminJSRouter.routes.find((r) => r.action === 'bundleComponents')) { + await next() } else if (ctx.session.adminUser) { await next() } else {