From 0e943bda2a70f4dde8b08a5a4081272c1b5a07a7 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 8 Mar 2026 23:49:23 -0700 Subject: [PATCH] Use sneaker host header as base URL --- apps/git/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/git/index.tsx b/apps/git/index.tsx index 60fbb79..c9af650 100644 --- a/apps/git/index.tsx +++ b/apps/git/index.tsx @@ -757,8 +757,9 @@ app.post('/api/visibility/:repo', async c => { app.get('/', async c => { const appName = c.req.query('app') - const baseUrl = APP_URL - const external = !!c.req.header('x-sneaker') + const sneakerHost = c.req.header('x-sneaker') + const external = !!sneakerHost + const baseUrl = sneakerHost ? `https://${sneakerHost}` : APP_URL // When viewing a specific app, only show that app's repo if (appName) {