GHHG10/CodeServer / opencode /packages /web /src /content.config.ts
GHHG10's picture
download
raw
562 Bytes
import { defineCollection, z } from "astro:content"
import { docsLoader, i18nLoader } from "@astrojs/starlight/loaders"
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema"
import en from "./content/i18n/en.json"
const custom = Object.fromEntries(Object.keys(en).map((key) => [key, z.string()]))
export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
i18n: defineCollection({
loader: i18nLoader(),
schema: i18nSchema({
extend: z.object(custom).catchall(z.string()),
}),
}),
}

Xet Storage Details

Size:
562 Bytes
·
Xet hash:
370b06ef043630d1161fed317098ab2f1108ed31b539baa42eea248b0a2d92ef

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.