Use sneaker host header as base URL

This commit is contained in:
Chris Wanstrath 2026-03-08 23:49:23 -07:00
parent eef2fabd71
commit 0e943bda2a

View File

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