From 5e53e6d06e8d18f0871dfa673acd100c2f2e9e7a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 30 Oct 2022 00:58:33 +0300 Subject: Bundle server with esbuild --- vnext/server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnext/server/index.js') diff --git a/vnext/server/index.js b/vnext/server/index.js index 12093b1b..5840b586 100644 --- a/vnext/server/index.js +++ b/vnext/server/index.js @@ -20,7 +20,7 @@ router.use('^/$', serverRenderer); // other static resources should just be served as they are router.use(express.static( - path.resolve(__dirname, '..', 'dist'), + path.resolve(__dirname), { maxAge: '30d' }, )); -- cgit v1.2.3