vercel / serve-handler

The foundation of `serve`

Home Page:https://npmjs.com/serve-handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If vercel handler is served under a path like /blog/ inside nginx then trailingSlash option redirects will redirect to top level domain name

GrosSacASac opened this issue · comments

target = `${decodedPath}/`;

The solution is to use relative redirect links eg
Location: ./folder/
instead of
Location: /folder/

with the trailingSlash option