@@ -81,11 +81,13 @@ export default function App({ Component, pageProps }) {
81
81
82
82
const baseURL = process . env . NEXT_PUBLIC_SITE_URL || 'https://sfccdocs.com'
83
83
const googleAnalytics = process . env . NEXT_PUBLIC_GOOGLE_ANALYTICS || 'G-G1ER54K5N0'
84
+ const isProduction = baseURL === 'https://sfccdocs.com'
84
85
85
86
const metaTitle = pageProps . markdoc ?. frontmatter . metaTitle
86
87
const metaDescription = pageProps . markdoc ?. frontmatter . metaDescription
87
88
const metaKeywords = pageProps . markdoc ?. frontmatter . metaKeywords
88
89
const metaURL = `${ baseURL } ${ router . pathname } `
90
+ const metaIndex = isProduction ? 'index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1, noodp, noydir' : 'noindex, nofollow, noodp, noydir'
89
91
90
92
const tableOfContents = pageProps . markdoc ?. content ? collectHeadings ( pageProps . markdoc . content ) : [ ]
91
93
@@ -104,10 +106,9 @@ export default function App({ Component, pageProps }) {
104
106
< meta name = "keywords" content = { metaKeywords } />
105
107
106
108
{ /* Bot Settings */ }
107
- < meta name = "googlebot" content = "index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
108
- < meta name = "bingbot" content = "index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
109
- < meta name = "robots" content = "noodp,noydir" />
110
- < meta name = "robots" content = "index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
109
+ < meta name = "googlebot" content = { metaIndex } />
110
+ < meta name = "bingbot" content = { metaIndex } />
111
+ < meta name = "robots" content = { metaIndex } />
111
112
112
113
{ /* PWA Settings */ }
113
114
< meta name = "application-name" content = "SFCC Docs" />
@@ -132,7 +133,7 @@ export default function App({ Component, pageProps }) {
132
133
133
134
{ /* Twitter Schema */ }
134
135
< meta name = "twitter:card" content = "summary_large_image" />
135
- < meta name = "twitter:creator" content = "@mrmidi " />
136
+ < meta name = "twitter:creator" content = "@sfccdevops " />
136
137
< meta name = "twitter:description" content = { metaDescription } />
137
138
< meta name = "twitter:image" content = { `${ baseURL } /assets/website-card.png` } />
138
139
< meta name = "twitter:title" content = { metaTitle } />
@@ -155,7 +156,7 @@ export default function App({ Component, pageProps }) {
155
156
< link rel = "mask-icon" href = "/assets/icons/mask-icon.png" color = "#0f162a" />
156
157
157
158
{ /* PWA Manifest */ }
158
- < link rel = "manifest" href = "/manifest.webmanifest" />
159
+ < link rel = "manifest" href = "/manifest.webmanifest" crossorigin = "use-credentials" />
159
160
</ Head >
160
161
< Layout title = { metaTitle } tableOfContents = { tableOfContents } isMarkdoc = { Boolean ( pageProps . markdoc ) } isEmbedded = { isEmbedded } >
161
162
< Component { ...pageProps } />
0 commit comments