|
|
|
@ -1,20 +1,22 @@
|
|
|
|
|
import { DefaultTranslationsObject, Language } from "@payloadcms/translations";
|
|
|
|
|
import { Locale, buildConfig } from "payload";
|
|
|
|
|
import { defaultLocale, locales } from "@/i18n/settings";
|
|
|
|
|
|
|
|
|
|
import { About } from "./globals/About";
|
|
|
|
|
import { Contact } from "./globals/Contact";
|
|
|
|
|
import { FoodDeclaration } from "./collections/FoodDeclaration";
|
|
|
|
|
import { About } from "@/globals/About";
|
|
|
|
|
import { Contact } from "@/globals/Contact";
|
|
|
|
|
import { FoodDeclaration } from "@/collections/FoodDeclaration";
|
|
|
|
|
import { Gallery } from "@/globals/Gallery";
|
|
|
|
|
import { Holiday } from "./collections/Holiday";
|
|
|
|
|
import { Home } from "./globals/Home";
|
|
|
|
|
import { Media } from "./collections/Media";
|
|
|
|
|
import { Menu } from "./globals/Menu";
|
|
|
|
|
import { MenuCategory } from "./collections/MenuCategory";
|
|
|
|
|
import { MenuItem } from "./collections/MenuItem";
|
|
|
|
|
import { MenuItemTag } from "./collections/MenuItemTag";
|
|
|
|
|
import { OpeningTime } from "./collections/OpeningTime";
|
|
|
|
|
import { Users } from "./collections/Users";
|
|
|
|
|
import { Vacation } from "./collections/Vacation";
|
|
|
|
|
import { buildConfig } from "payload";
|
|
|
|
|
import { Holiday } from "@/collections/Holiday";
|
|
|
|
|
import { Home } from "@/globals/Home";
|
|
|
|
|
import { Media } from "@/collections/Media";
|
|
|
|
|
import { Menu } from "@/globals/Menu";
|
|
|
|
|
import { MenuCategory } from "@/collections/MenuCategory";
|
|
|
|
|
import { MenuItem } from "@/collections/MenuItem";
|
|
|
|
|
import { MenuItemTag } from "@/collections/MenuItemTag";
|
|
|
|
|
import { OpeningTime } from "@/collections/OpeningTime";
|
|
|
|
|
import { Settings } from "@/globals/Settings";
|
|
|
|
|
import { Users } from "@/collections/Users";
|
|
|
|
|
import { Vacation } from "@/collections/Vacation";
|
|
|
|
|
import { de } from "@payloadcms/translations/languages/de";
|
|
|
|
|
import { en } from "@payloadcms/translations/languages/en";
|
|
|
|
|
import { fileURLToPath } from "url";
|
|
|
|
@ -47,7 +49,7 @@ export default buildConfig({
|
|
|
|
|
Vacation,
|
|
|
|
|
Holiday,
|
|
|
|
|
],
|
|
|
|
|
globals: [Home, Gallery, About, Contact, Menu],
|
|
|
|
|
globals: [Home, Gallery, About, Contact, Menu, Settings],
|
|
|
|
|
editor: lexicalEditor(),
|
|
|
|
|
secret: process.env.PAYLOAD_SECRET || "",
|
|
|
|
|
typescript: {
|
|
|
|
@ -70,39 +72,8 @@ export default buildConfig({
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
localization: {
|
|
|
|
|
locales: [
|
|
|
|
|
{
|
|
|
|
|
label: {
|
|
|
|
|
de: "Deutsch",
|
|
|
|
|
en: "German",
|
|
|
|
|
},
|
|
|
|
|
code: "de",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: {
|
|
|
|
|
fr: "Français",
|
|
|
|
|
en: "French",
|
|
|
|
|
de: "Französisch",
|
|
|
|
|
},
|
|
|
|
|
code: "fr",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: {
|
|
|
|
|
it: "Italiano",
|
|
|
|
|
de: "Italienisch",
|
|
|
|
|
en: "Italian",
|
|
|
|
|
},
|
|
|
|
|
code: "it",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: {
|
|
|
|
|
de: "Englisch",
|
|
|
|
|
en: "English",
|
|
|
|
|
},
|
|
|
|
|
code: "en",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
defaultLocale: "de",
|
|
|
|
|
locales: locales as unknown as Locale[],
|
|
|
|
|
defaultLocale,
|
|
|
|
|
fallback: true,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|