make configuration provider specific

Right now, the config is only about SEO. By moving it to
the `@framework` directory, it can be customized on a
per-provider basis.
This commit is contained in:
Zaiste 2021-07-09 16:01:24 +02:00
parent 3adce572b3
commit 542cadc016
No known key found for this signature in database
GPG Key ID: 15DF7EBC7F2FFE35
4 changed files with 53 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { FC } from 'react'
import NextHead from 'next/head'
import { DefaultSeo } from 'next-seo'
import config from '@config/seo.json'
import config from '@framework/config/seo.json'
const Head: FC = () => {
return (

View File

@ -0,0 +1,26 @@
{
"title": "ACME Storefront | Powered by Next.js Commerce",
"titleTemplate": "%s - ACME Storefront",
"description": "Next.js Commerce - https://www.nextjs.org/commerce",
"openGraph": {
"title": "ACME Storefront | Powered by Next.js Commerce",
"description": "Next.js Commerce - https://www.nextjs.org/commerce",
"type": "website",
"locale": "en_IE",
"url": "https://nextjs.org/commerce",
"site_name": "Next.js Commerce",
"images": [
{
"url": "/card.png",
"width": 800,
"height": 600,
"alt": "Next.js Commerce"
}
]
},
"twitter": {
"handle": "@nextjs",
"site": "@nextjs",
"cardType": "summary_large_image"
}
}

View File

@ -0,0 +1,26 @@
{
"title": "ACME Storefront | Powered by Next.js Commerce & Saleor",
"titleTemplate": "%s - ACME Storefront",
"description": "Next.js Commerce & Saleor - https://www.nextjs.org/commerce",
"openGraph": {
"title": "ACME Storefront | Powered by Next.js Commerce & Saleor",
"description": "Next.js Commerce & Saleor - https://www.nextjs.org/commerce",
"type": "website",
"locale": "en_IE",
"url": "https://nextjs.org/commerce",
"site_name": "Next.js Commerce & Saleor",
"images": [
{
"url": "/card-saleor.png",
"width": 1200,
"height": 675,
"alt": "Next.js Commerce & Saleor"
}
]
},
"twitter": {
"handle": "@nextjs",
"site": "@nextjs",
"cardType": "summary_large_image"
}
}

BIN
public/card-saleor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB