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:
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