cloudflare / cloudflare/workers-rs
req.url() always returns production url
Open
- Dominant language
- Rust
- Stars
- 3.7k
- Forks
- 429
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 7
Description
read title.
For ms oauth2 i need to send a redirect URL when getting the token and I want to get the URL used programatically instead of somehow hard coding it for dev and prod
```rs
.get_async("/microsoft_auth", |req, ctx| async move {
let url = req.url().unwrap(); // this is always the production url
```
Contributor guide
Assessment
This issue has not been assessed yet.