Files
EpicNext-Cms/src/lib/services/habbo-gamedata-hotel.ts
T
SimoandCursor ef2c3324b4
Local Build and Deploy / deploy (push) Failing after 15s
Prune unused deps, bump safe minors, add server-only guards.
Remove unused translate/jpeg types packages; refresh patch updates; mark Redis/site-settings/gamedata hotel as server-only with a Vitest stub.

Co-authored-by: Cursor <[email protected]>
2026-07-17 22:53:56 +02:00

19 lines
555 B
TypeScript

import "server-only";
import {
DEFAULT_HABBO_GAMEDATA_HOTEL,
HABBO_GAMEDATA_HOTEL_SETTING_KEY,
type HabboGamedataHotel,
normalizeHabboGamedataHotel,
} from "@/lib/habbo-gamedata-hotel";
import { siteSettings } from "@/lib/services/site-settings";
/** Read configured Habbo hotel TLD from CMS settings (server-only). */
export async function getHabboGamedataHotel(): Promise<HabboGamedataHotel> {
const raw = await siteSettings.get(
HABBO_GAMEDATA_HOTEL_SETTING_KEY,
DEFAULT_HABBO_GAMEDATA_HOTEL,
);
return normalizeHabboGamedataHotel(raw);
}