fix(docs): Fix Docsearch recordExtractors, sitemap, and cookie banner script load (#3512)

Fixes #1685
This commit is contained in:
Jamil
2024-02-01 09:01:26 -08:00
committed by GitHub
parent d36b4da81d
commit c80132f3d5
7 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.SITE_URL || "https://firezone.dev",
siteUrl: "https://www.firezone.dev",
generateRobotsTxt: true, // (optional)
// ...other options
};

View File

@@ -11,7 +11,6 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<Alert
color="info"
html={`
<!-- TODO: Link to EOL blogpost -->
You're viewing documentation for the legacy version of Firezone.
<a href="/kb">View the latest docs here</a>.
`}

View File

@@ -5,6 +5,7 @@ export default function SearchForm() {
return (
<div className="pb-3 -ml-1 flex justify-start border-b border-neutral-200 ">
<DocSearch
insights
appId="XXPZ9QVGFB"
apiKey="66664e8765e1645ea0b500acebb0b0c2"
indexName="firezone"

View File

@@ -5,6 +5,7 @@ export default function SearchForm() {
return (
<div className="pb-3 -ml-1 flex justify-start border-b border-neutral-200 ">
<DocSearch
insights
appId="XXPZ9QVGFB"
apiKey="66664e8765e1645ea0b500acebb0b0c2"
indexName="firezone"

View File

@@ -7,10 +7,8 @@ export default function Provider({ children }) {
const host = "https://t.firez.one";
return (
<>
<MixpanelProvider token={token} config={{ api_host: host }}>
<HubspotProvider>{children}</HubspotProvider>
</MixpanelProvider>
</>
<MixpanelProvider token={token} config={{ api_host: host }}>
<HubspotProvider>{children}</HubspotProvider>
</MixpanelProvider>
);
}

View File

@@ -48,7 +48,7 @@ export default function RootLayout({
<html lang="en">
<Script
src="https://app.termly.io/embed.min.js"
data-auto-block="on"
data-auto-block="off"
data-website-uuid="c4df1a31-22d9-4000-82e6-a86cbec0bba0"
></Script>
<body className={source_sans_3.className}>
@@ -58,6 +58,7 @@ export default function RootLayout({
<Footer />
</div>
<Script
strategy="lazyOnload"
id="hs-script-loader"
async
defer

View File

@@ -26,6 +26,7 @@ export default function SupportOptions() {
<span className="self-center">Or try searching the docs:</span>
<span className="ml-2">
<DocSearch
insights
appId="XXPZ9QVGFB"
apiKey="66664e8765e1645ea0b500acebb0b0c2"
indexName="firezone"