Skip to content

Commit

Permalink
Merge pull request #2 from VladBrok/dev
Browse files Browse the repository at this point in the history
Add og tags
  • Loading branch information
VladBrok authored Sep 4, 2022
2 parents fd5112c + 849cd46 commit 42e4c05
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Binary file added public/images/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/lib/sharedConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ export const PRODUCT_PAGE_SIZE = 15;
export const REVIEW_PAGE_SIZE = 5;
export const MESSAGE_PAGE_SIZE = 20;
export const CHAT_PAGE_SIZE = 10;

export const SITE_DESCRIPTION =
"Buy and sell products on Payback - a fully-featured e-commerce store.";
13 changes: 11 additions & 2 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import router, { useRouter } from "next/router";
import Head from "next/head";
import { useEffect, useState } from "react";
import { flushSync } from "react-dom";
import { SITE_DESCRIPTION } from "lib/sharedConstants";

export default function App({ Component: Page, pageProps }) {
const [error, setError] = useState();
Expand Down Expand Up @@ -61,10 +62,18 @@ export default function App({ Component: Page, pageProps }) {
<>
<Head>
<link rel="icon" type="image/png" href="/images/logo-small.png" />
<meta name="description" content={SITE_DESCRIPTION} />
<meta
name="description"
content="Buy and sell products on Payback - a fully-featured e-commerce store."
property="og:title"
content="Payback - a fully-featured e-commerce store"
/>
<meta property="og:description" content={SITE_DESCRIPTION} />
<meta property="og:type" content="website" />
<meta
property="og:image"
content="https://payback-store.vercel.app/images/og-image.png"
/>
<meta property="og:url" content="https://payback-store.vercel.app" />
</Head>

<SessionUserProvider value={pageProps.sessionUser}>
Expand Down

1 comment on commit 42e4c05

@vercel
Copy link

@vercel vercel bot commented on 42e4c05 Sep 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

payback – ./

payback-vladbrok.vercel.app
payback-git-master-vladbrok.vercel.app
payback-store.vercel.app

Please sign in to comment.