Closed
Description
We have an issue with trailing slashes, see opennextjs/opennextjs-cloudflare#312
The reason why this doesn't work is this code:
opennextjs-aws/packages/open-next/src/core/routing/matcher.ts
Lines 258 to 269 in 14b8182
in cloudflare, event.url
is http://localhost:8787/...
so url.host !== "localhost"
is true (the host
is localhost:8787
).
I think that event.url
is not usually an URL but a path in @opennextjs/aws
.
However in @opennextjs/cloudflare
, event.url
is actually an URL.
See also this code in cloudflare-node.ts
:
@conico974 do you have an idea on how to best fix this?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels