Closed xiBread closed 6 months ago
import { defineConfig, s } from "velite";
export default defineConfig({
collections: {
data: {
name: "Data",
pattern: "data/index.json",
schema: s.string(),
},
},
});
The schema of velite is the schema of a single entity, not the array schema of a collection list
Ah, got it.
Given this config file:
and this JSON file:
Running
velite
gives the following warnings and fails to produce any output.