From a33519427493b5e012f884409a8c8d902c93a074 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Mon, 8 Jan 2024 12:14:23 +0100 Subject: [PATCH] fix: netlify identity registration link handling --- .../website/{gatsby-ssr.ts => gatsby-ssr.tsx} | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) rename apps/website/{gatsby-ssr.ts => gatsby-ssr.tsx} (51%) diff --git a/apps/website/gatsby-ssr.ts b/apps/website/gatsby-ssr.tsx similarity index 51% rename from apps/website/gatsby-ssr.ts rename to apps/website/gatsby-ssr.tsx index 375c350ba..3aa1a6e7e 100644 --- a/apps/website/gatsby-ssr.ts +++ b/apps/website/gatsby-ssr.tsx @@ -2,9 +2,11 @@ import './styles.css'; import { Locale } from '@custom/schema'; import { GatsbySSR } from 'gatsby'; +import React from 'react'; export const onRenderBody: GatsbySSR['onRenderBody'] = ({ setHtmlAttributes, + setHeadComponents, pathname, }) => { const locales = Object.values(Locale); @@ -24,4 +26,23 @@ export const onRenderBody: GatsbySSR['onRenderBody'] = ({ // We don't know the language. } } + // Remove this if Netlify identity is not used. + setHeadComponents([ +