Skip to content

Commit

Permalink
fix: serve components.bundle.js publicly
Browse files Browse the repository at this point in the history
  • Loading branch information
dziraf committed Mar 28, 2023
1 parent 85a7ce7 commit de950bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/authentication/protected-routes.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export const withProtectedRoutesHandler = (
fastifyApp.addHook('preHandler', async (request, reply) => {
if (AdminRouter.assets.find((asset) => request.url.match(asset.path))) {
return;
} else if (AdminRouter.routes.find((r) => r.action === 'bundleComponents')) {
return;
} else if (
!request.url.startsWith(rootPath) ||
request.session.get('adminUser') ||
Expand Down

0 comments on commit de950bb

Please sign in to comment.