import specFile from '~/../../spec/cli_v1_config.yaml' assert { type: 'yml' } import { Parameter } from '~/lib/refGenerator/refTypes' import ReactMarkdown from 'react-markdown' import GuidesTableOfContents from '~/components/GuidesTableOfContents' import { Heading } from '~/components/CustomHTMLElements' import Head from 'next/head' // Parameters are grouped on the page by tag const TAGS = ['general', 'auth', 'api', 'database', 'dashboard', 'local', 'edge-functions'] const tocList = TAGS.map((tag) => specFile.parameters .filter((param: Parameter) => param.tags[0] === tag) .map((parameter) => { const text = parameter.id const link = `#${parameter.id}` const level = '2' return { text, link, level } }) ).flat() export default function Config() { return ( <>
{parameter.title}
{parameter.required.toString()}
{parameter.default ? parameter.default.toString() : 'None'}