Skip to content

Commit 8042942

Browse files
committed
test serving the frontend site
1 parent de0887f commit 8042942

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

assets/frontend.zip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:f313a7ed0ab34948aa28fe94107db56061e1299705bbec40a5c6c44a8a282038
3-
size 246
2+
oid sha256:9176a6ba425adeb7c85d69785f97a14527641f0505d1d4da50903b30ed26c113
3+
size 6935372

crates/bin/pd/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@ async fn main() -> anyhow::Result<()> {
520520
.context("failed to parse grpc_bind address")?,
521521
);
522522

523-
let frontend = pd::zipserve::router("/app", pd::FRONTEND_APP_ARCHIVE_BYTES);
523+
//let frontend = pd::zipserve::router("/app", pd::FRONTEND_APP_ARCHIVE_BYTES);
524+
// Temporary: try serving the frontend without trying to prefix its internal links
525+
let frontend = pd::zipserve::router("", pd::FRONTEND_APP_ARCHIVE_BYTES);
524526
let router = grpc_server.into_router().merge(frontend);
525527

526528
tracing::info!(?grpc_bind, "starting grpc and web server");

0 commit comments

Comments
 (0)