Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 678 Bytes

File metadata and controls

45 lines (33 loc) · 678 Bytes
title layout
Hono Github Issue 3238

@hono/github/issue-3238

https://github.com/honojs/hono/3238

Contents

Solution

Provided solution here https://github.com/honojs/hono/3238#issuecomment-2278379005

app.use(
    "*",
    serveStatic({
        root: "./static",
+        rewriteRequestPath: (path) => {
+           return path.replace("/hello.world", "/hello.world/");
+       },
    }),
);

Setup

To clone:

git clone https://github.com/rjoydip/oss-issue-fix-collection.git
cd oss-issue-fix-collection/honojs/hono/github/3238

To test:

deno test --allow-read --quiet