Working player, some other fixes

This commit is contained in:
2025-08-11 13:23:47 +09:30
parent a5f00515a5
commit 7773d7c3ea
9 changed files with 3378 additions and 602 deletions

View File

@@ -51,7 +51,7 @@ const tracks = defineCollection({
loader: glob({ pattern: "**/*.json", base: "./src/assets/tracks" }),
schema: ({ image }) =>
z.object({
src: z.string(),
src: z.preprocess((val) => `/audio/${val}`, z.string()),
metadata: z.object({
title: z.string(),
subtitle: z.string().optional(),