Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/live-public-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const MAX_RESPONSE_BYTES = 2 * 1024 * 1024;
export async function fetchLivePublicEvents(): Promise<WebsiteEvent[]> {
const response = await fetch(PUBLIC_EVENTS_API_URL, {
headers: { accept: 'application/json' },
redirect: 'error',
redirect: 'manual',
signal: AbortSignal.timeout(8_000),
});

Expand All @@ -31,7 +31,7 @@ export async function fetchLivePublicEvent(slug: string): Promise<WebsiteEvent |

const response = await fetch(`${PUBLIC_EVENTS_API_URL}/${encodeURIComponent(slug)}`, {
headers: { accept: 'application/json' },
redirect: 'error',
redirect: 'manual',
signal: AbortSignal.timeout(8_000),
});

Expand Down
2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Env {

const EVENT_ROUTE = /^\/events\/([a-zA-Z0-9][a-zA-Z0-9_-]{0,239})\/?$/;
const CALENDAR_PATH = '/events/calendar.ics';
const EVENT_SHELL_PATH = '/events/index.html';
const EVENT_SHELL_PATH = '/events/';

export default {
async fetch(request: Request, env: Env): Promise<Response> {
Expand Down
Loading