Fetch track thumbnails remotely

This commit is contained in:
thiloho
2025-10-23 22:17:26 +02:00
parent 42501f0bc5
commit e2cb8845b0
32 changed files with 5068 additions and 145 deletions

View File

@@ -13,15 +13,13 @@ const blog = defineCollection({
const tracks = defineCollection({
loader: file("./src/content/tracks.json"),
schema: ({ image }) =>
z.object({
id: z.number().positive(),
title: z.string(),
youtubeLink: z.string().url(),
artist: z.string(),
album: z.string(),
cover: image(),
}),
schema: z.object({
id: z.number().positive(),
title: z.string(),
youtubeLink: z.string().url(),
artist: z.string(),
album: z.string(),
}),
});
export const collections = { blog, tracks };