From 93d15cb4510879abbc7be281c830f0589c32dfd8 Mon Sep 17 00:00:00 2001 From: Josh Kasten Date: Thu, 26 Oct 2023 18:40:32 +0000 Subject: [PATCH] fix example hosting server worker files --- express_webpack/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/express_webpack/server.js b/express_webpack/server.js index a692d8630..41c4c4fad 100644 --- a/express_webpack/server.js +++ b/express_webpack/server.js @@ -31,7 +31,7 @@ app.get('/sdks/web/v16/:file', (req, res) => { }); app.get('/:file', (req, res) => { - res.sendFile(sanitize(req.params.file)); + res.sendFile(sanitize(req.params.file), { root: __dirname }); }); https.createServer(options, app).listen(4001, () => console.log("express_webpack: listening on port 4001 (https)"));