From dcec6906f67bda359e9cc42e95429c71dd30150f Mon Sep 17 00:00:00 2001 From: Kelvin Luck Date: Sun, 19 May 2024 21:37:17 +0100 Subject: [PATCH] Prefer `import.meta.path` in http server guide (#11180) --- docs/guides/http/server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/http/server.md b/docs/guides/http/server.md index 7c3d6e86ef..382d0c28a2 100644 --- a/docs/guides/http/server.md +++ b/docs/guides/http/server.md @@ -18,7 +18,7 @@ const server = Bun.serve({ if (path === "/abc") return Response.redirect("/source", 301); // send back a file (in this case, *this* file) - if (path === "/source") return new Response(Bun.file(import.meta.file)); + if (path === "/source") return new Response(Bun.file(import.meta.path)); // respond with JSON if (path === "/api") return Response.json({ some: "buns", for: "you" });