From fa8142f12dad93eaf3c23add239cdc1e84930a5f Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 15 Mar 2023 20:12:42 +0100 Subject: [PATCH] Adding robots.txt to the release #261 --- angular.json | 1 + src/backend/routes/PublicRouter.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/angular.json b/angular.json index 01895f10..46c70b10 100644 --- a/angular.json +++ b/angular.json @@ -93,6 +93,7 @@ "polyfills": "src/frontend/polyfills.ts", "assets": [ "src/frontend/assets", + "src/frontend/robots.txt", { "glob": "**/*", "input": "node_modules/leaflet/dist/images/", diff --git a/src/backend/routes/PublicRouter.ts b/src/backend/routes/PublicRouter.ts index e0fb6f90..e1a459f1 100644 --- a/src/backend/routes/PublicRouter.ts +++ b/src/backend/routes/PublicRouter.ts @@ -44,6 +44,7 @@ export class PublicRouter { next(); }; + // index.html should not be cached as it contains template that can change const renderIndex = (req: Request, res: Response, next: NextFunction) => { ejs.renderFile( path.join(ProjectPath.FrontendFolder, req.localePath, 'index.html'),