From 6779764ba7745f76bb7a5b07f24d1fa3c268ab7f Mon Sep 17 00:00:00 2001 From: Clément Date: Wed, 05 Aug 2026 12:38:29 +0000 Subject: [PATCH] config: resolve the knot hostname at runtime knotty can nnow be downloded as a single binary. injects config into the frontend --- Cargo.lock | 2 ++ app/index.html | 3 +++ app/vite.config.ts | 25 ++++++++----------------- app/src/App.tsx | 5 ++--- crates/knotty-web/Cargo.toml | 2 ++ app/src/lib/atproto.ts | 5 +++-- app/src/lib/config.ts | 17 +++++++++++++++++ app/src/lib/oauth_metadata.ts | 40 ++++++++++++++-------------------------- crates/knotty-knot/src/main.rs | 10 ++++++---- crates/knotty-knot/src/router.rs | 3 ++- crates/knotty-web/src/lib.rs | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 11 file(s) changed, 141 insertion(s)(+), 60 deletion(s)(-) diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -2613,6 +2613,8 @@ "axum", "mime_guess", "rust-embed", + "serde", + "serde_json", "tracing", ] diff --git a/app/index.html b/app/index.html --- a/app/index.html +++ b/app/index.html @@ -5,6 +5,9 @@ Knotty +