mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51:21 +00:00
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:
parent
3adce572b3
commit
542cadc016
@ -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 (
|
||||
|
26
framework/commerce/config/seo.json
Normal file
26
framework/commerce/config/seo.json
Normal 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"
|
||||
}
|
||||
}
|
26
framework/saleor/config/seo.json
Normal file
26
framework/saleor/config/seo.json
Normal 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
BIN
public/card-saleor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
Loading…
x
Reference in New Issue
Block a user