From 9de51fab09df7fe7d8a048457a43aad16b3e72f5 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 19 Apr 2025 22:43:22 +0200 Subject: [PATCH 1/2] Update preview endpoints. --- .env.preview | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.preview b/.env.preview index 6792a8ba4..91bc3a8bc 100644 --- a/.env.preview +++ b/.env.preview @@ -1,2 +1,3 @@ -EP_SESSIONS_API="https://static.europython.eu/programme/ep2025/releases/current/sessions.json" -EP_SPEAKERS_API="https://static.europython.eu/programme/ep2025/releases/current/speakers.json" +EP_SESSIONS_API="https://static.europython.eu/programme/ep2024/releases/current/sessions.json" +EP_SPEAKERS_API="https://gist.githubusercontent.com/nikoshell/24f8c99de3758dc4ed1391876c382b43/raw/bdf11fe89e5010f35dc1351e9b71c02a19adefe2/24speakers.json" +EP_SCHEDULE_API="https://static.europython.eu/programme/ep2024/releases/current/schedule.json" From 4e87f54afc8e8f96001994a9fce6da989339cf45 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 19 Apr 2025 22:46:30 +0200 Subject: [PATCH 2/2] Update fields in schema. --- src/content/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/config.ts b/src/content/config.ts index 6ad9d0d79..58ca12181 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -109,10 +109,10 @@ const speakers = defineCollection({ submissions: z.array(reference("sessions")), affiliation: z.string().nullable(), homepage: z.string().nullable(), - gitx_url: z.string().url().nullable(), + gitx_url: z.string().url().nullable().optional(), linkedin_url: z.string().url().nullable(), mastodon_url: z.string().url().nullable(), - bluesky_url: z.string().url().nullable(), + bluesky_url: z.string().url().nullable().optional(), twitter_url: z.string().url().nullable(), }), });