chore: corrects dateFNS keys, stricter types

This commit is contained in:
Jarrod Flesch
2024-04-09 11:38:38 -04:00
parent 817d57bd12
commit 35f59a47cc
14 changed files with 354 additions and 100 deletions

View File

@@ -27,6 +27,7 @@ import {
} from '@payloadcms/richtext-lexical'
import { de } from '@payloadcms/translations/languages/de'
import { en } from '@payloadcms/translations/languages/en'
import { es } from '@payloadcms/translations/languages/es'
// import { slateEditor } from '@payloadcms/richtext-slate'
import { type Config, buildConfig } from 'payload/config'
import sharp from 'sharp'
@@ -173,16 +174,18 @@ export async function buildConfigWithDefaults(
}),
sharp,
telemetry: false,
i18n: {
supportedLanguages: {
en,
de,
},
},
typescript: {
declare: false,
},
...testConfig,
i18n: {
supportedLanguages: {
en,
es,
de,
},
...(testConfig?.i18n || {}),
},
}
config.admin = {