diff --git a/app/(frontend)/kontakt/page.tsx b/app/(frontend)/kontakt/page.tsx
index 21758eb..9de36c2 100644
--- a/app/(frontend)/kontakt/page.tsx
+++ b/app/(frontend)/kontakt/page.tsx
@@ -88,7 +88,7 @@ export default async function KontaktPage() {
{contact.region && (
- Region
+ Adresse
{contact.region}
diff --git a/globals/Contact.ts b/globals/Contact.ts
index 1fbb0fe..8cd0413 100644
--- a/globals/Contact.ts
+++ b/globals/Contact.ts
@@ -22,7 +22,7 @@ export const Contact: GlobalConfig = {
fields: [
{ name: "email", type: "email", label: "E-Mail", required: true, admin: { width: "34%" } },
{ name: "phone", type: "text", label: "Telefon", admin: { width: "33%" } },
- { name: "region", type: "text", label: "Region / Ort", admin: { width: "33%" } },
+ { name: "region", type: "text", label: "Adresse / Ort", admin: { width: "33%" } },
],
},
seoFields(),
diff --git a/migrations/20260917_090000_contact_details.ts b/migrations/20260917_090000_contact_details.ts
new file mode 100644
index 0000000..5d8a84e
--- /dev/null
+++ b/migrations/20260917_090000_contact_details.ts
@@ -0,0 +1,29 @@
+import type { MigrateUpArgs } from "@payloadcms/db-postgres";
+
+/** Applies the contact details approved for the public website. */
+export async function up({ payload }: MigrateUpArgs): Promise {
+ await payload.updateGlobal({
+ slug: "contact",
+ data: {
+ email: "info@anouma.org",
+ phone: "+49 151 53611786",
+ region: "Haldenweg 3, 79853 Lenzkirch",
+ },
+ overrideAccess: true,
+ });
+
+ await payload.updateGlobal({
+ slug: "booking-settings",
+ data: {
+ locationName: "Anouma",
+ street: "Haldenweg 3",
+ postalCode: "79853",
+ city: "Lenzkirch",
+ country: "Deutschland",
+ },
+ overrideAccess: true,
+ });
+}
+
+// Content entered by the site owner must not be discarded during a schema rollback.
+export async function down(): Promise {}
diff --git a/migrations/index.ts b/migrations/index.ts
index 3d98568..adb345d 100644
--- a/migrations/index.ts
+++ b/migrations/index.ts
@@ -1,5 +1,6 @@
import * as migration_20260826_004425 from './20260826_004425';
import * as migration_20260916_192252_cookie_settings from './20260916_192252_cookie_settings';
+import * as migration_20260917_090000_contact_details from './20260917_090000_contact_details';
export const migrations = [
{
@@ -12,4 +13,9 @@ export const migrations = [
down: migration_20260916_192252_cookie_settings.down,
name: '20260916_192252_cookie_settings'
},
+ {
+ up: migration_20260917_090000_contact_details.up,
+ down: migration_20260917_090000_contact_details.down,
+ name: '20260917_090000_contact_details'
+ },
];
diff --git a/scripts/seed.ts b/scripts/seed.ts
index 8b45be3..b4eb402 100644
--- a/scripts/seed.ts
+++ b/scripts/seed.ts
@@ -187,13 +187,24 @@ async function seedGlobals(payload: Awaited>) {
eyebrow: "Kontakt",
title: "Ich freue mich, von dir zu hören",
lead: "Ob Frage, Anliegen oder der Wunsch nach einem Kennenlerngespräch – schreib mir gerne.",
- // Placeholder contact details — replace with the real ones in the admin.
- email: "hallo@anouma.org",
- phone: "+49 000 00 00 00",
- region: "Platzhalter – Ort / Region",
+ email: "info@anouma.org",
+ phone: "+49 151 53611786",
+ region: "Haldenweg 3, 79853 Lenzkirch",
},
});
- console.log(" ↺ Global „Kontakt“ gesetzt (mit Platzhalter-Kontaktdaten — bitte im Admin ersetzen)");
+ console.log(" ↺ Global „Kontakt“ gesetzt");
+
+ await payload.updateGlobal({
+ slug: "booking-settings",
+ data: {
+ locationName: "Anouma",
+ street: "Haldenweg 3",
+ postalCode: "79853",
+ city: "Lenzkirch",
+ country: "Deutschland",
+ },
+ });
+ console.log(" ↺ Global „Buchungseinstellungen“ gesetzt");
await payload.updateGlobal({
slug: "booking",