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) {