We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f44ed0 + 4ac1ecf commit 364c56bCopy full SHA for 364c56b
pages/_app.js
@@ -1,3 +1,4 @@
1
+import React from 'react'
2
import { ThemeProvider } from 'theme-ui'
3
import { MDXProvider } from '@mdx-js/react'
4
import '@carbonplan/components/fonts.css'
@@ -8,6 +9,14 @@ import theme from '@carbonplan/theme'
8
9
const App = ({ Component, pageProps }) => {
10
return (
11
<ThemeProvider theme={theme}>
12
+ {process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' && (
13
+ <Script
14
+ strategy='lazyOnload'
15
+ data-domain='carbonplan.org'
16
+ data-api='https://carbonplan.org/proxy/api/event'
17
+ src='https://carbonplan.org/js/script.file-downloads.outbound-links.js'
18
+ />
19
+ )}
20
<MDXProvider>
21
<Component {...pageProps} />
22
</MDXProvider>
0 commit comments