Fix client bundle pulling Redis/Prisma via habbo gamedata hotel.
Local Build and Deploy / deploy (push) Successful in 54s
Local Build and Deploy / deploy (push) Successful in 54s
Keep hotel list helpers client-safe; load CMS setting only from a server module. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
d1baaf798a
commit
785c1b6976
6 files changed
+25
-13
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
Reference in new issue
Block a user