Closed arctic-hen7 closed 1 year ago
Will look into it. api/main
should definitely 404 when merging as it just serves as entrypoint for the other handlers.
Unfortunately running RUST_BACKTRACE=1 vercel dev doesn't seem to pass the environment variable through for me, so I'm not sure how exactly to get a backtrace on this error locally.
You many also need to pass VERCEL_BUILDER_DEBUG=true
to get a verbose cargo output.
I am still facing this issue in the exact same manner
Using the route merging feature, hits to API endpoints that don't exist return 404 errors, as expected, but hitting
/api/main
, at least when usingvercel dev
, leads to a 502 error when it doesn't exist, with the following console output:For me, this can be replicated with a minimal route merging configuration as in the readme. Note that line 10 refers to the
#[bundled_api]
macro. Unfortunately runningRUST_BACKTRACE=1 vercel dev
doesn't seem to pass the environment variable through for me, so I'm not sure how exactly to get a backtrace on this error locally.