refactor: resolve hotel name directly from HOTEL_NAME env
resolveHotelName() now returns env.HOTEL_NAME directly — the single source of truth. The CMS hotel_name site setting and its DEFAULTS entry are removed as dead code since they no longer influence the displayed name. Call sites are unchanged (still await resolveHotelName()); only the lookup behind it is gone, so the public site always shows the configured env name with no DB round-trip and no preset.
This commit is contained in:
1 parent
164a4f4ef6
commit
750fcb2e5c
4 files changed
+6
-17
No files matched your search
@@ -44,13 +44,6 @@ export const SETTINGS_GROUPS: SettingsGroup[] = [
|
||||
icon: "building",
|
||||
description: "Name, branding and defaults shown across the site.",
|
||||
fields: [
|
||||
{
|
||||
key: "hotel_name",
|
||||
label: "Hotel name",
|
||||
type: "text",
|
||||
placeholder: "Epicnabbo",
|
||||
defaultValue: "",
|
||||
},
|
||||
{
|
||||
key: "cms_logo",
|
||||
label: "Logo URL",
|
||||
|
||||
Reference in new issue
Block a user