mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
* show cms blog posts in www * remove contentlayer from www * outputFileTracingExcludes * update remotePatterns * fetch cms posts server-side with revalidation * add cms env vars to turbo.json * add www env vars to turbo.json * include cms posts in www sitemap * add migration to remove image from cms post * update cms meta image mapping in www
58 lines
993 B
TypeScript
58 lines
993 B
TypeScript
import type { Block } from 'payload'
|
|
|
|
export const Code: Block = {
|
|
slug: 'code',
|
|
interfaceName: 'CodeBlock',
|
|
fields: [
|
|
{
|
|
name: 'language',
|
|
type: 'select',
|
|
defaultValue: 'typescript',
|
|
options: [
|
|
{
|
|
label: 'SQL',
|
|
value: 'sql',
|
|
},
|
|
{
|
|
label: 'JSON',
|
|
value: 'json',
|
|
},
|
|
{
|
|
label: 'bash',
|
|
value: 'bash',
|
|
},
|
|
{
|
|
label: 'Javascript',
|
|
value: 'js',
|
|
},
|
|
{
|
|
label: 'Typescript',
|
|
value: 'ts',
|
|
},
|
|
{
|
|
label: 'tsx',
|
|
value: 'tsx',
|
|
},
|
|
{
|
|
label: 'Python',
|
|
value: 'py',
|
|
},
|
|
{
|
|
label: 'kotlin',
|
|
value: 'kotlin',
|
|
},
|
|
{
|
|
label: 'yaml',
|
|
value: 'yaml',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'code',
|
|
type: 'code',
|
|
label: false,
|
|
required: true,
|
|
},
|
|
],
|
|
}
|