Something went wrong. Try again.
link aggregator for FIRST Tech Challenge tools & resources firsttech.tools
Something went wrong. Try again.
12345678910111213import { readFileSync } from "node:fs";import { resolve } from "node:path";import { parse } from "smol-toml";import { validate, type SiteData } from "./schema.ts";
// Resolve from the project working directory (the build always runs from the// project root) rather than relative to this module's URL, which moves around// in the bundled server chunk output.const raw = readFileSync(resolve(process.cwd(), "data/tools.toml"), "utf-8");
const parsed = parse(raw);export const siteData: SiteData = validate(parsed);