Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
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