@@ -12,6 +12,9 @@ const { title, description, canonicalPath = Astro.url.pathname } = Astro.props
1212const pageTitle = title === " Bindhub" ? " Bindhub" : ` ${title } | Bindhub `
1313const canonicalUrl = new URL (canonicalPath , Astro .url .origin )
1414const ogImageUrl = new URL (" /bindhub-folder-continuity.png" , Astro .url .origin )
15+ const dashboardBaseUrl = (import .meta .env .PUBLIC_BINDHUB_DASHBOARD_URL ?? " " ).replace (/ \/ $ / , " " )
16+ const dashboardUrl = dashboardBaseUrl || " /"
17+ const dashboardSignInUrl = dashboardBaseUrl ? ` ${dashboardBaseUrl }/auth/sign-in ` : " /auth/sign-in"
1518---
1619
1720<!doctype html >
@@ -54,8 +57,8 @@ const ogImageUrl = new URL("/bindhub-folder-continuity.png", Astro.url.origin)
5457 <a href =" /#machines" >Machines</a >
5558 <a href =" /#storage" >Storage</a >
5659 <a href =" /docs/" >Docs</a >
57- <a href =" /auth/sign-in " >Sign in</a >
58- <a class =" button primary sm nav-cta" href =" /auth/sign-in " >
60+ <a href ={ dashboardSignInUrl } >Sign in</a >
61+ <a class =" button primary sm nav-cta" href ={ dashboardUrl } >
5962 Open dashboard
6063 </a >
6164 </div >
@@ -72,8 +75,8 @@ const ogImageUrl = new URL("/bindhub-folder-continuity.png", Astro.url.origin)
7275 <div class =" footer-links" >
7376 <a href =" /docs/" >Docs</a >
7477 <a href =" /docs/security/" >Security</a >
75- <a href =" /dashboard " >Dashboard</a >
76- <a href =" /auth/sign-in " >Sign in</a >
78+ <a href ={ dashboardUrl } >Dashboard</a >
79+ <a href ={ dashboardSignInUrl } >Sign in</a >
7780 </div >
7881 </footer >
7982 <script is:inline >
0 commit comments