diff --git a/website/gatsby-ssr.ts b/website/gatsby-ssr.ts
deleted file mode 100644
index 0f11ab85..00000000
--- a/website/gatsby-ssr.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
- *
- * See: https://www.gatsbyjs.org/docs/ssr-apis/
- */
-
-import { GatsbySSR } from 'gatsby'
-
-export const onRenderBody: GatsbySSR['onRenderBody'] = ({
- setHtmlAttributes,
-}) => {
- setHtmlAttributes({ lang: 'en' })
-}
-
-export { default as wrapPageElement } from './src/libs/wrapPageElement'
diff --git a/website/gatsby-ssr.tsx b/website/gatsby-ssr.tsx
new file mode 100644
index 00000000..471d42f0
--- /dev/null
+++ b/website/gatsby-ssr.tsx
@@ -0,0 +1,40 @@
+/**
+ * Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
+ *
+ * See: https://www.gatsbyjs.org/docs/ssr-apis/
+ */
+
+import React, { Fragment } from 'react'
+
+import { GatsbySSR } from 'gatsby'
+
+const GoogleAdsTag = (
+
+)
+
+const GoogleFontTag = (
+
+
+
+
+
+)
+
+export const onRenderBody: GatsbySSR['onRenderBody'] = props => {
+ props.setHtmlAttributes({ lang: 'en' })
+ props.setHeadComponents([GoogleAdsTag, GoogleFontTag])
+}
+
+export { default as wrapPageElement } from './src/libs/wrapPageElement'
diff --git a/website/src/components/seo.tsx b/website/src/components/seo.tsx
index a8f94972..d4de0566 100644
--- a/website/src/components/seo.tsx
+++ b/website/src/components/seo.tsx
@@ -51,23 +51,6 @@ const SEO: FC = ({ title = '', description = '', children }) => {
{children}
-
-
-
-
-
-
>
)
}
diff --git a/website/tsconfig.json b/website/tsconfig.json
index d6334019..e7a7db06 100644
--- a/website/tsconfig.json
+++ b/website/tsconfig.json
@@ -18,6 +18,6 @@
}
},
- "include": ["./src/**/*", "./gatsby-*.ts"],
+ "include": ["src/**/*", "gatsby-*.ts", "gatsby-ssr.tsx"],
"exclude": ["node_modules", "public", ".cache", "generated"]
}