Working player, some other fixes
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user