feat: add nextjs metadata

This commit is contained in:
Qurashi Aqeel 2024-04-23 10:12:08 +05:30
parent 6be7aab360
commit ea02b8af2b
5 changed files with 25 additions and 0 deletions

2
.env.example Normal file
View file

@ -0,0 +1,2 @@
NEXT_PUBLIC_SITE_BASE_URL=http://localhost:3000
# ANALYZE=

View file

@ -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 (
<html lang="en">

View file

@ -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,
},
})

BIN
public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

1
public/logo.svg Normal file
View file

@ -0,0 +1 @@
<svg width="121" height="49" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.594 43.772a12.86 12.86 0 0 1-5.237 2.63A12.89 12.89 0 0 1 7.224 43.87a12.788 12.788 0 0 1-3.572-4.632 14.062 14.062 0 0 1-.831-10.42 14.13 14.13 0 0 1 6.595-8.133l12.022-7.733a12.47 12.47 0 0 0-1.254 2.859.884.884 0 0 0 .21.953.691.691 0 0 0 .505.219c.318-.033.619-.154.87-.35 1.242-.877 8.03-4.666 20.338-11.533A27670.77 27670.77 0 0 1 33.901 21.1h1.364c1.826-3.516 4.4-8.587 7.909-15.41L45 2l-3.3 1.862c-11.539 6.44-17.875 9.977-20.02 11.28.385-.853 1.1-2.135 2.035-3.789l1.31-2.245-16.181 10.47A15.17 15.17 0 0 0 3.069 25.2 15.086 15.086 0 0 0 1 32.973C1 41.286 7.447 48 15.4 48a14 14 0 0 0 5.448-1.103 13.948 13.948 0 0 0 4.583-3.136l-1.837.011Z" fill="#FF782C" stroke="#FF782C"></path><path d="M13.412 27.225v4.647h.763c.358.03.718-.006 1.06-.11.342-.103.659-.27.932-.49a2.31 2.31 0 0 0 .597-1.697 2.163 2.163 0 0 0-.099-.947 2.243 2.243 0 0 0-.498-.824 2.58 2.58 0 0 0-.869-.466 2.664 2.664 0 0 0-.99-.113h-.896Zm0 6.67v4.837h1.494a3.75 3.75 0 0 0 2.367-.643c.25-.224.45-.495.587-.796a2.304 2.304 0 0 0 0-1.906 2.405 2.405 0 0 0-.587-.796 4.051 4.051 0 0 0-2.7-.696h-1.161Zm1.24 7.103H11V25h2.4c.86-.021 1.72.064 2.557.253a3.788 3.788 0 0 1 1.626.843c.485.42.863.939 1.107 1.518a4.54 4.54 0 0 1 .409 1.865 3.951 3.951 0 0 1-.332 1.591 4.022 4.022 0 0 1-.985 1.317c.83.283 1.539.82 2.014 1.528.499.75.757 1.621.741 2.508a4.624 4.624 0 0 1-.332 1.729 4.206 4.206 0 0 1-.995 1.433 4.317 4.317 0 0 1-1.793 1.117c-.89.214-1.805.313-2.722.295h-.044Zm71.12 0h-2.457V25h2.412l.045 15.997Zm13.387 0h-2.456v-13.7H93.03v-2.297h9.747v2.276h-3.629l.011 13.72Zm16.597 0h-2.412v-6.913L108.132 25h2.777l3.652 6.397L118.223 25H121l-5.255 9.084.011 6.913Zm-79.917 0h-7.17V25h2.412v13.7h4.703l.055 2.297Zm39.577 0H63.743l7.844-13.7h-6.572v-2.297h10.522l-7.844 13.7h7.667l.056 2.297ZM50.189 29.406l-2.544 5.438h4.857l-2.313-5.438Zm7.668 11.592h-2.7l-1.67-3.889h-6.85l-1.77 3.889h-2.6L50.167 24l7.69 16.998Z" fill="#30302F"></path></svg>

After

Width:  |  Height:  |  Size: 2 KiB