mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 12:55:06 +03:00
* Regenerate the registry files. * Regenerate the llms.txt file. * Set the supabase project for testing. * Fix the registryBlock component. * Various fixes. * Add missing deps to satisfy TS build. * Fix the tanstack client. * Add a tanstack block for password-based auth. * Fix the command URL. * Fix the env vars in the React client. * Add missing pages to the nextjs auth. * Simplify the tanstack auth block. * Add success state to the forgot-password form. * Fix the v0 button. Add some more docs. * Revert some changes.
13 lines
401 B
TypeScript
13 lines
401 B
TypeScript
'use server'
|
|
|
|
import { generateRegistryTree } from '@/lib/process-registry'
|
|
import path from 'path'
|
|
import { BlockItemCode } from './block-item-code'
|
|
|
|
export async function RegistryBlock({ itemName }: { itemName: string }) {
|
|
const registryPath = path.join(process.cwd(), 'public', 'r', `${itemName}.json`)
|
|
const tree = generateRegistryTree(registryPath)
|
|
|
|
return <BlockItemCode files={tree} />
|
|
}
|