refactor: centralize hotel name fallback via FALLBACK_HOTEL_NAME
Route all user-facing Atom hotel defaults through resolveHotelName (settings then HOTEL_NAME env then brand constant). Exclude Playwright e2e from tsconfig until deps are installed. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
6b2819aa20
commit
e00e9ca2dc
31 files changed
+113
-56
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import LogoGenerator from "@/components/public/logo-generator";
|
||||
import { ContentCard } from "@/components/public/ui";
|
||||
import { resolveHotelName } from "@/lib/hotel-name";
|
||||
|
||||
export const metadata = { title: "Logo generator" };
|
||||
|
||||
@@ -9,7 +10,8 @@ export const metadata = { title: "Logo generator" };
|
||||
* client-side <LogoGenerator>, which does all styling, live preview, and PNG
|
||||
* export in the browser (no server data, no DB).
|
||||
*/
|
||||
export default function LogoPage() {
|
||||
export default async function LogoPage() {
|
||||
const initialText = await resolveHotelName();
|
||||
return (
|
||||
<main
|
||||
style={{
|
||||
@@ -25,7 +27,7 @@ export default function LogoPage() {
|
||||
subtitle="Design a logo for your hotel — pick a font, colours and size, then download it as a PNG."
|
||||
/>
|
||||
|
||||
<LogoGenerator />
|
||||
<LogoGenerator initialText={initialText} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user