kopia lustrzana https://github.com/cloudflare/wildebeest
remove redirection to old /start-instance
rodzic
26fbb26cec
commit
59ea1eb90b
|
@ -56,8 +56,6 @@ export async function main(context: EventContext<Env, any, any>) {
|
|||
url.pathname === '/api/v1/timelines/public' ||
|
||||
url.pathname === '/api/v1/custom_emojis' ||
|
||||
url.pathname === '/.well-known/webfinger' ||
|
||||
url.pathname === '/start-instance' || // Access is required by the handler
|
||||
url.pathname === '/start-instance-test-access' || // Access is required by the handler
|
||||
url.pathname === '/api/v1/trends/statuses' ||
|
||||
url.pathname === '/api/v1/trends/links' ||
|
||||
url.pathname.startsWith('/ap/') // all ActivityPub endpoints
|
||||
|
|
|
@ -21,10 +21,6 @@ export const instanceLoader = loader$<
|
|||
const response = await instance.handleRequest('', platform.DATABASE, env)
|
||||
const results = await response.text()
|
||||
const json = JSON.parse(results) as InstanceConfig
|
||||
if (!json.title) {
|
||||
// If there is no title set then we have not configured the instance
|
||||
throw redirect(302, '/start-instance')
|
||||
}
|
||||
return json
|
||||
})
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue