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",
|
"polyfills": "src/frontend/polyfills.ts",
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/frontend/assets",
|
"src/frontend/assets",
|
||||||
|
"src/frontend/robots.txt",
|
||||||
{
|
{
|
||||||
"glob": "**/*",
|
"glob": "**/*",
|
||||||
"input": "node_modules/leaflet/dist/images/",
|
"input": "node_modules/leaflet/dist/images/",
|
||||||
|
@ -44,6 +44,7 @@ export class PublicRouter {
|
|||||||
next();
|
next();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// index.html should not be cached as it contains template that can change
|
||||||
const renderIndex = (req: Request, res: Response, next: NextFunction) => {
|
const renderIndex = (req: Request, res: Response, next: NextFunction) => {
|
||||||
ejs.renderFile(
|
ejs.renderFile(
|
||||||
path.join(ProjectPath.FrontendFolder, req.localePath, 'index.html'),
|
path.join(ProjectPath.FrontendFolder, req.localePath, 'index.html'),
|
||||||
|
Loading…
Reference in New Issue
Block a user