app-backend: log when running in protected mode

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-04-09 12:19:48 +02:00
parent cd8587d5bd
commit 2ff147b0d6
@@ -171,6 +171,10 @@ export async function createRouter(
(await fs.pathExists(publicDistDir)) && auth && httpAuth;
if (enablePublicEntryPoint && auth && httpAuth) {
logger.info(
`App is running in protected mode, serving public content from ${publicDistDir}`,
);
const publicRouter = Router();
publicRouter.use(async (req, _res, next) => {