1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Adding robots.txt to the release #261

This commit is contained in:
Patrik J. Braun 2023-03-15 20:12:42 +01:00
parent 146923933c
commit fa8142f12d
2 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@
"polyfills": "src/frontend/polyfills.ts",
"assets": [
"src/frontend/assets",
"src/frontend/robots.txt",
{
"glob": "**/*",
"input": "node_modules/leaflet/dist/images/",

View File

@ -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'),