From c6fb204d11d59ee412fff1890ba044819ff21432 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Wed, 5 Jan 2022 14:23:33 +0800 Subject: [PATCH] Skip checking DIST_ROOT twice f0cd1592 did an additional call instead of replacement. Aside: the 1 hour value only has effect in dev instances. For prod, CloudFlare seems to override that to 4 hours. --- web/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/index.js b/web/index.js index b7ee5d01e..a8fbef596 100644 --- a/web/index.js +++ b/web/index.js @@ -33,7 +33,5 @@ app.use(serve(DIST_ROOT, { maxage: 3600000, // set a cache time of one hour, helpful for mobile dev })); -app.use(serve(DIST_ROOT)); // Check if the request url matches any assets inside of /dist - app.use(router.routes()); app.listen(config.WEB_SERVER_PORT, () => `Server up at localhost:${config.WEB_SERVER_PORT}`);