Skip to content

Commit 0c3c166

Browse files
egeakmanCopilot
andauthored
Update config.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e414d0e commit 0c3c166

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/content/config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ const keynoters = defineCollection({
5151
});
5252

5353
async function getCollectionsData() {
54-
const speakersData = await loadData(import.meta.env.EP_SPEAKERS_API);
55-
const sessionsData = await loadData(import.meta.env.EP_SESSIONS_API);
54+
const [speakersData, sessionsData] = await Promise.all([
55+
loadData(import.meta.env.EP_SPEAKERS_API),
56+
loadData(import.meta.env.EP_SESSIONS_API),
57+
]);
5658

5759
const speakersById = Object.entries(
5860
speakersData as Record<string, {}>

0 commit comments

Comments
 (0)