From 95f8cf55000f3c45a022a92a8a5f020f18e810b0 Mon Sep 17 00:00:00 2001 From: Pascal Kaufmann Date: Wed, 11 Dec 2024 18:32:37 +0100 Subject: [PATCH] Move fileUrl --- examples/kitchensink/src/boot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/kitchensink/src/boot.ts b/examples/kitchensink/src/boot.ts index d87472959..3569ca4fe 100644 --- a/examples/kitchensink/src/boot.ts +++ b/examples/kitchensink/src/boot.ts @@ -77,8 +77,8 @@ const start = async () => { createGoogleWalletPass: console.log, }); + const fileUrl = new URL(import.meta.resolve('../static/index.html')); app.use('/', async (req, res) => { - const fileUrl = new URL(import.meta.resolve('../static/index.html')); res.status(200).sendFile(fileUrl.pathname); });