fix: replace next/head with metadata const
This commit is contained in:
parent
06022c03b0
commit
d7ae39fa52
1 changed files with 18 additions and 12 deletions
30
app/page.tsx
30
app/page.tsx
|
|
@ -1,21 +1,27 @@
|
||||||
import Head from "next/head"
|
import { Metadata } from "next"
|
||||||
import { Button } from "components/Button/Button"
|
import { Button } from "components/Button/Button"
|
||||||
import { LP_GRID_ITEMS } from "lp-items"
|
import { LP_GRID_ITEMS } from "lp-items"
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: "Next.js Enterprise Boilerplate",
|
||||||
|
twitter: {
|
||||||
|
card: "summary_large_image",
|
||||||
|
},
|
||||||
|
openGraph: {
|
||||||
|
url: "https://next-enterprise.vercel.app/",
|
||||||
|
images: [
|
||||||
|
{
|
||||||
|
width: 1200,
|
||||||
|
height: 630,
|
||||||
|
url: "https://raw.githubusercontent.com/Blazity/next-enterprise/main/project-logo.png",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
export default function Web() {
|
export default function Web() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
|
||||||
<meta property="og:url" content="https://next-enterprise.vercel.app/" />
|
|
||||||
<meta
|
|
||||||
property="og:image"
|
|
||||||
content="https://raw.githubusercontent.com/Blazity/next-enterprise/main/project-logo.png"
|
|
||||||
/>
|
|
||||||
<meta property="og:image:width" content="1200" />
|
|
||||||
<meta property="og:image:height" content="630" />
|
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
|
||||||
<title>Next.js Enterprise Boilerplate</title>
|
|
||||||
</Head>
|
|
||||||
<section className="bg-white dark:bg-gray-900">
|
<section className="bg-white dark:bg-gray-900">
|
||||||
<div className="mx-auto grid max-w-screen-xl px-4 py-8 text-center lg:py-16">
|
<div className="mx-auto grid max-w-screen-xl px-4 py-8 text-center lg:py-16">
|
||||||
<div className="mx-auto place-self-center">
|
<div className="mx-auto place-self-center">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue