From 8ce9dcf4aa4a293c936b6459521ead2ff1ddec18 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 2 Dec 2022 22:06:18 +0100 Subject: [PATCH] fix webmanifest and robots.txt --- src/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.js b/src/app.js index c98d15591..f1c8a4d65 100644 --- a/src/app.js +++ b/src/app.js @@ -52,6 +52,8 @@ app.use(`/node_modules/@excalidraw/excalidraw/dist/`, express.static(path.join(_ app.use(`/${assetPath}/node_modules/@excalidraw/excalidraw/dist/`, express.static(path.join(__dirname, '..', 'node_modules/@excalidraw/excalidraw/dist/'))); app.use(`/${assetPath}/images`, express.static(path.join(__dirname, '..', 'images'))); app.use(`/assets/vX/images`, express.static(path.join(__dirname, '..', 'images'))); +app.use(`/manifest.webmanifest`, express.static(path.join(__dirname, 'public/manifest.webmanifest'))); +app.use(`/robots.txt`, express.static(path.join(__dirname, 'public/robots.txt'))); const sessionParser = session({ secret: sessionSecret, resave: false, // true forces the session to be saved back to the session store, even if the session was never modified during the request.