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:
parent
146923933c
commit
fa8142f12d
@ -93,6 +93,7 @@
|
||||
"polyfills": "src/frontend/polyfills.ts",
|
||||
"assets": [
|
||||
"src/frontend/assets",
|
||||
"src/frontend/robots.txt",
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "node_modules/leaflet/dist/images/",
|
||||
|
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user