1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08: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'),