Skip to content

Commit e4c0491

Browse files
committed
Fix missing prod .env keys.
1 parent 47d75c5 commit e4c0491

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/content/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ const days = defineCollection({
193193
loader: async (): Promise<any[]> => {
194194
const schedule = await loadData(import.meta.env.EP_SCHEDULE_API);
195195

196+
if (Object.keys(schedule).length === 0) {
197+
return schedule;
198+
}
196199
return Object.entries(schedule.days).map(([date, data]: [string, any]) => ({
197200
id: date,
198201
...data,

0 commit comments

Comments
 (0)