Skip to content

Commit

Permalink
test serving the frontend site
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Dec 15, 2023
1 parent de0887f commit 8042942
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/frontend.zip
Git LFS file not shown
4 changes: 3 additions & 1 deletion crates/bin/pd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ async fn main() -> anyhow::Result<()> {
.context("failed to parse grpc_bind address")?,
);

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

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

0 comments on commit 8042942

Please sign in to comment.