feat: configure public contact details

This commit is contained in:
2026-09-17 00:38:48 +02:00
parent ba2147c717
commit d99c69f46d
5 changed files with 53 additions and 7 deletions
@@ -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<void> {
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<void> {}