Skip to content

Commit

Permalink
Update support for worker 0.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ecbr0wn committed Mar 6, 2024
1 parent 35814b1 commit ed6b9e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Binary file added assets/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fn log_request(req: &Request) {
"{} - [{}], located at: {:?}, within: {}",
Date::now().to_string(),
req.path(),
req.cf().coordinates().unwrap_or_default(),
req.cf().region().unwrap_or_else(|| "unknown region".into())
req.cf().unwrap().coordinates().unwrap_or_default(),
req.cf().unwrap().region().unwrap_or_else(|| "unknown region".into())
);
}

Expand Down
7 changes: 4 additions & 3 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name = "dev-id"
main = "build/worker/shim.mjs"
compatibility_date = "2022-01-20"
assets = "assets"
kv_namespaces = [
{ binding = "id", id = "444fcce1202948d59b0d2a326933c413", preview_id = "79d9e5086960445abc089e9d753e0fb5" }
]
vars = [
{ENVIRONMENT = "development"},
{WORKERS_RS_VERSION = "0.0.17"}
{WORKERS_RS_VERSION = "0.0.19"}
]
send_metrics = false

Expand All @@ -17,7 +18,7 @@ kv_namespaces = [
]
vars = [
{ENVIRONMENT = "test"},
{WORKERS_RS_VERSION = "0.0.17"}
{WORKERS_RS_VERSION = "0.0.19"}
]

[env.prod]
Expand All @@ -30,7 +31,7 @@ kv_namespaces = [
]
vars = [
{ENVIRONMENT = "production"},
{WORKERS_RS_VERSION = "0.0.17"}
{WORKERS_RS_VERSION = "0.0.19"}
]

[build]
Expand Down

0 comments on commit ed6b9e0

Please sign in to comment.