Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ewpratten committed Oct 29, 2024
1 parent fb0b793 commit c95c123
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 173 deletions.
14 changes: 13 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "shell",
"command": "zola",
"options": {
"cwd": "${workspaceFolder}/ewpratten.com"
"cwd": "${workspaceFolder}/sites/ewpratten.com"
},
"args": [
"serve",
Expand All @@ -18,6 +18,18 @@
"--open"
],
"problemMatcher": []
},
{
"label": "Launch development webserver (maps.ewpratten.com)",
"type": "shell",
"command": "wrangler",
"options": {
"cwd": "${workspaceFolder}/sites/maps.ewpratten.com"
},
"args": [
"dev"
],
"problemMatcher": []
}
]
}
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[workspace]
members = ["sites/maps.ewpratten.com"]
resolver = "2"
17 changes: 0 additions & 17 deletions sites/ewpratten.com/static/functions/.well-known/nodeinfo.js

This file was deleted.

20 changes: 0 additions & 20 deletions sites/ewpratten.com/static/functions/.well-known/webfinger.js

This file was deleted.

45 changes: 0 additions & 45 deletions sites/ewpratten.com/static/functions/api/activitypub/nodeinfo.js

This file was deleted.

46 changes: 0 additions & 46 deletions sites/ewpratten.com/static/functions/api/activitypub/outbox.js

This file was deleted.

44 changes: 0 additions & 44 deletions sites/ewpratten.com/static/functions/api/activitypub/users/evan.js

This file was deleted.

18 changes: 18 additions & 0 deletions sites/maps.ewpratten.com/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "maps-ewpratten-com"
version = "0.0.0"
edition = "2021"

[dependencies]
worker = { version = "0.4.2", feature = ["http"] }

[profile.release]
lto = true
strip = true
codegen-units = 1

[lib]
crate-type = ["cdylib", "rlib"]

[package.metadata.wasm-pack.profile.release]
wasm-opt = false
5 changes: 5 additions & 0 deletions sites/maps.ewpratten.com/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#[worker::event(fetch)]
pub async fn main(req: worker::Request, env: worker::Env, ctx: worker::Context) -> worker::Result<worker::Response> {
worker::Response::ok("Test")
}
Empty file.
10 changes: 10 additions & 0 deletions sites/maps.ewpratten.com/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = "map-viewer"
main = "build/worker/shim.mjs"
compatibility_date = "2023-05-22"

r2_buckets = [
{ binding = "MAP_TILES", bucket_name = "map-tiles" }
]

[build]
command = "cargo install worker-build && worker-build --release"

0 comments on commit c95c123

Please sign in to comment.