Skip to content

Commit

Permalink
added nextseo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis committed Nov 22, 2023
1 parent 39855a0 commit 375f650
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"mixpanel-browser": "^2.47.0",
"next": "^13.4.19",
"next-auth": "^4.23.0",
"next-seo": "^6.4.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-map-gl": "^7.1.6",
Expand Down
45 changes: 41 additions & 4 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import {
import "~/styles/globals.css";
import Head from "next/head";
import type { Metadata } from "next";
import { NextSeo } from "next-seo";

const title = "PostCovet";
const title = "PostCovet 33333";
const description =
"San Francisco Deed Search. Search and find deed data within seconds. Address Search. Individual Name";
const url = "https://postcovet.com";
Expand All @@ -22,11 +23,13 @@ const image = `${url}/postcovet.png`;
// https://nextjs.org/docs/app/api-reference/functions/generate-metadata#template
// either use the static metadata object from next or
// the dynamic metadata with generateMetaData({ params })
// another approach:
// https://github.com/vercel/next.js/issues/35172#issuecomment-1501040414
export const metadata: Metadata = {
title,
description,
openGraph: {
title: "Post Covet",
title: "Post Covet 2222",
description: "Find owners of single family homes in SF!",
images: [
{
Expand All @@ -52,7 +55,41 @@ const MyApp: AppType<{ session: Session | null }> = ({
}) => {
return (
<div>
<Head>
<NextSeo
title="Using More of Config"
description="This example uses more of the available config options."
// canonical="https://www.canonical.ie/"
openGraph={{
url: "www.postcovet.com",
title: "Open Graph Title",
description: "Open Graph Description",
images: [
{
url: `${url}/postcovet.png`,
width: 800,
height: 600,
alt: "Og Image Alt",
type: "image/jpeg",
},
{
url: `${url}/postcovet.png`,
width: 900,
height: 800,
alt: "Og Image Alt Second",
type: "image/jpeg",
},
{ url: `${url}/postcovet.png` },
{ url: `${url}/postcovet.png` },
],
siteName: "SiteName",
}}
twitter={{
handle: "@handle",
site: "@site",
cardType: "summary_large_image",
}}
/>
{/* <Head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
Expand All @@ -68,7 +105,7 @@ const MyApp: AppType<{ session: Session | null }> = ({
<meta name="twitter:image" content={image} />
<title>{title}</title>
<link rel="icon" href="/covet-favicon2.ico" />
</Head>
</Head> */}
<ClerkProvider {...pageProps}>
<Component {...pageProps} />
</ClerkProvider>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export const metadata: Metadata = {
};

const DeckMap = dynamic(() => import("~/components/DeckMap"), {
// SRR has to be false because of this:
// https://github.com/visgl/deck.gl/issues/7735#issuecomment-1464197310
ssr: false,
loading: () => <LoadingView />,
});
Expand Down

0 comments on commit 375f650

Please sign in to comment.