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.
13 lines
361 B
TypeScript
13 lines
361 B
TypeScript
import "server-only";
|
|
|
|
import { env } from "@/env";
|
|
|
|
/**
|
|
* The public hotel name is read directly from the required HOTEL_NAME env var.
|
|
* There is no CMS override or hardcoded preset — the site must be configured,
|
|
* otherwise HOTEL_NAME fails validation at startup.
|
|
*/
|
|
export async function resolveHotelName(): Promise<string> {
|
|
return env.HOTEL_NAME;
|
|
}
|