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 = ( + - - - - ) } 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"] }