|
|
@ -1,20 +1,22 @@
|
|
|
|
import { DefaultTranslationsObject, Language } from "@payloadcms/translations";
|
|
|
|
import { DefaultTranslationsObject, Language } from "@payloadcms/translations";
|
|
|
|
|
|
|
|
import { Locale, buildConfig } from "payload";
|
|
|
|
|
|
|
|
import { defaultLocale, locales } from "@/i18n/settings";
|
|
|
|
|
|
|
|
|
|
|
|
import { About } from "./globals/About";
|
|
|
|
import { About } from "@/globals/About";
|
|
|
|
import { Contact } from "./globals/Contact";
|
|
|
|
import { Contact } from "@/globals/Contact";
|
|
|
|
import { FoodDeclaration } from "./collections/FoodDeclaration";
|
|
|
|
import { FoodDeclaration } from "@/collections/FoodDeclaration";
|
|
|
|
import { Gallery } from "@/globals/Gallery";
|
|
|
|
import { Gallery } from "@/globals/Gallery";
|
|
|
|
import { Holiday } from "./collections/Holiday";
|
|
|
|
import { Holiday } from "@/collections/Holiday";
|
|
|
|
import { Home } from "./globals/Home";
|
|
|
|
import { Home } from "@/globals/Home";
|
|
|
|
import { Media } from "./collections/Media";
|
|
|
|
import { Media } from "@/collections/Media";
|
|
|
|
import { Menu } from "./globals/Menu";
|
|
|
|
import { Menu } from "@/globals/Menu";
|
|
|
|
import { MenuCategory } from "./collections/MenuCategory";
|
|
|
|
import { MenuCategory } from "@/collections/MenuCategory";
|
|
|
|
import { MenuItem } from "./collections/MenuItem";
|
|
|
|
import { MenuItem } from "@/collections/MenuItem";
|
|
|
|
import { MenuItemTag } from "./collections/MenuItemTag";
|
|
|
|
import { MenuItemTag } from "@/collections/MenuItemTag";
|
|
|
|
import { OpeningTime } from "./collections/OpeningTime";
|
|
|
|
import { OpeningTime } from "@/collections/OpeningTime";
|
|
|
|
import { Users } from "./collections/Users";
|
|
|
|
import { Settings } from "@/globals/Settings";
|
|
|
|
import { Vacation } from "./collections/Vacation";
|
|
|
|
import { Users } from "@/collections/Users";
|
|
|
|
import { buildConfig } from "payload";
|
|
|
|
import { Vacation } from "@/collections/Vacation";
|
|
|
|
import { de } from "@payloadcms/translations/languages/de";
|
|
|
|
import { de } from "@payloadcms/translations/languages/de";
|
|
|
|
import { en } from "@payloadcms/translations/languages/en";
|
|
|
|
import { en } from "@payloadcms/translations/languages/en";
|
|
|
|
import { fileURLToPath } from "url";
|
|
|
|
import { fileURLToPath } from "url";
|
|
|
@ -47,7 +49,7 @@ export default buildConfig({
|
|
|
|
Vacation,
|
|
|
|
Vacation,
|
|
|
|
Holiday,
|
|
|
|
Holiday,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
globals: [Home, Gallery, About, Contact, Menu],
|
|
|
|
globals: [Home, Gallery, About, Contact, Menu, Settings],
|
|
|
|
editor: lexicalEditor(),
|
|
|
|
editor: lexicalEditor(),
|
|
|
|
secret: process.env.PAYLOAD_SECRET || "",
|
|
|
|
secret: process.env.PAYLOAD_SECRET || "",
|
|
|
|
typescript: {
|
|
|
|
typescript: {
|
|
|
@ -70,39 +72,8 @@ export default buildConfig({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
localization: {
|
|
|
|
localization: {
|
|
|
|
locales: [
|
|
|
|
locales: locales as unknown as Locale[],
|
|
|
|
{
|
|
|
|
defaultLocale,
|
|
|
|
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",
|
|
|
|
|
|
|
|
fallback: true,
|
|
|
|
fallback: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|