diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..08637e4 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +NEXT_PUBLIC_SITE_BASE_URL=http://localhost:3000 +# ANALYZE= diff --git a/app/layout.tsx b/app/layout.tsx index a872374..5a4a6e5 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,25 @@ +import { Metadata } from "next" +import { env } from "env.mjs" import "styles/tailwind.css" +export const metadata: Metadata = { + title: { + default: "Blazity | next-enterprise", + template: "Blazity | %s", + }, + description: "Blazity next-js boilerplate for enterprise applications", + keywords: "next-js, next-enterprise, blazity, boilerplate, enterprise", + icons: "/logo.png", + openGraph: { + images: "/logo.png", + type: "website", + }, + metadataBase: new URL(env.NEXT_PUBLIC_SITE_BASE_URL || "http://localhost:3000"), + twitter: { + images: "/logo.png", + }, +} + export default function RootLayout({ children }: { children: React.ReactNode }) { return ( diff --git a/env.mjs b/env.mjs index a3adf0e..4a936ac 100644 --- a/env.mjs +++ b/env.mjs @@ -7,9 +7,11 @@ export const env = createEnv({ .enum(["true", "false"]) .optional() .transform((value) => value === "true"), + NEXT_PUBLIC_SITE_BASE_URL: z.string().url().optional(), }, client: {}, runtimeEnv: { ANALYZE: process.env.ANALYZE, + NEXT_PUBLIC_SITE_BASE_URL: process.env.NEXT_PUBLIC_SITE_BASE_URL, }, }) diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000..8b7db16 Binary files /dev/null and b/public/logo.png differ diff --git a/public/logo.svg b/public/logo.svg new file mode 100644 index 0000000..445c7b2 --- /dev/null +++ b/public/logo.svg @@ -0,0 +1 @@ +