Skip to content

Commit 5de6094

Browse files
authored
Merge pull request #1205 from Kiln-AI/wk/enhancements
Show branch name in browser title for wk
2 parents 30c00f2 + 4cd6d7f commit 5de6094

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.config/wt/start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ PORT=$(hash_port "$BRANCH")
2121
export KILN_PORT="$PORT"
2222
export KILN_FRONTEND_PORT="$((PORT + 1))"
2323
export VITE_API_PORT="$PORT"
24+
export VITE_BRANCH_NAME="$BRANCH"
2425

2526
export KILN_WEB_URL="http://localhost:$KILN_FRONTEND_PORT"
2627

app/web_ui/src/routes/+layout.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import { beforeNavigate, afterNavigate } from "$app/navigation"
2424
import { client } from "$lib/api_client"
2525
26+
const pageTitle = import.meta.env.VITE_BRANCH_NAME || "Kiln"
27+
2628
function sanitize_route_id(route_id: string | null | undefined) {
2729
if (!route_id) {
2830
return "/unknown"
@@ -121,7 +123,7 @@
121123
</script>
122124

123125
<svelte:head>
124-
<title>Kiln</title>
126+
<title>{pageTitle}</title>
125127
<meta name="description" content="The easiest way to built AI products" />
126128

127129
<link

0 commit comments

Comments
 (0)