forked from defunkt/toes
Use sneaker host header as base URL
This commit is contained in:
parent
eef2fabd71
commit
0e943bda2a
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user