Patch Changes
-
#1241
794da98Thanks @truffle-dev! - fix(server-hono): don't double-prefix basePath when Hono already merged it into route.pathWhen a sub-app is mounted via
app.route(basePath, subApp)orapp.basePath(basePath),
Hono's internal_addRoutecallsmergePath(basePath, path)and stores the merged
result inroute.path, while still keepingbasePathon the route as metadata.
extractCustomEndpointsblindly prependedbasePathtoroute.path, so a route
registered as/api/hellowithbasePath: "/api"was logged asGET /api/api/hello
even though Hono served it correctly at/api/hello. Only prependbasePathwhen
route.pathdoes not already include it. -
Updated dependencies [
b4cb089,69b78fd,832f094,99c201b]:- @voltagent/core@2.7.3
- @voltagent/server-core@2.1.16