11 lines
327 B
TypeScript
11 lines
327 B
TypeScript
export function getPublicApiUrl(): string {
|
|
const u = process.env.NEXT_PUBLIC_API_URL?.trim();
|
|
if (u) return u.replace(/\/$/, "");
|
|
return "http://localhost:7777/api";
|
|
}
|
|
|
|
export function getHotelPropertyId(): string | undefined {
|
|
const id = process.env.NEXT_PUBLIC_HOTEL_PROPERTY_ID?.trim();
|
|
return id || undefined;
|
|
}
|