Local Build and Deploy / deploy (push) Failing after 15s
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]>
19 lines
555 B
TypeScript
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);
|
|
}
|