refactor: move env vars to constants file

This commit is contained in:
lucas-neynar
2025-05-05 15:52:38 -07:00
parent 40e40543cd
commit 5f0fd8876a
10 changed files with 47 additions and 39 deletions

View File

@@ -3,10 +3,11 @@ import type { Metadata } from "next";
import { getSession } from "~/auth"
import "~/app/globals.css";
import { Providers } from "~/app/providers";
import { APP_NAME, APP_DESCRIPTION } from "~/lib/constants";
export const metadata: Metadata = {
title: process.env.NEXT_PUBLIC_FRAME_NAME || "Frames v2 Demo",
description: process.env.NEXT_PUBLIC_FRAME_DESCRIPTION || "A Farcaster Frames v2 demo app",
title: APP_NAME,
description: APP_DESCRIPTION,
};
export default async function RootLayout({