rust icon indicating copy to clipboard operation
rust copied to clipboard

Tutorial leads to "NOT_FOUND" deployment

Open test3211234 opened this issue 1 year ago • 4 comments

I'm new to Vercel, and wanted to use it in Rust. However, something in your README.md tutorial must be wrong or missing as this is what happens after following it and deploying it:

image

You also never spoke about these:

image

I notice you never spoke about a package.json too, even though it's in your examples. I copy pasted it, and it made no difference. Also, is this project dead? I don't see many updates.

test3211234 avatar Jan 27 '24 01:01 test3211234

I use rewrite to route the traffic, see https://github.com/Zxilly/OnedriveHostsGenerator/blob/master/vercel.json

Zxilly avatar Feb 16 '24 14:02 Zxilly

Hey, not a dead project at all. It's just not under active development at the moment, and is a community effort.

The Build & Development Settings are not needed for the Rust Runtime.

Could you share a link to your deployment, so I can investigate? I suspect it could be the rewrites, but I'm not sure.

Thanks 🙏

dglsparsons avatar Feb 19 '24 10:02 dglsparsons

@test3211234 This is because by default the router uses directory structure based routing so your function is at localhost:3000/api/handler.

TraceLD avatar Mar 18 '24 02:03 TraceLD