diff --git a/docusaurus.config.js b/docusaurus.config.js index efa54ade..d19b4af6 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -5,6 +5,8 @@ import dotenv from "dotenv" const ssrTemplate = require("./src/internals/ssr.template") const customFields = require("./src/config/customFields") const path = require("path") +const isPreviews = process.env.NETLIFY && process.env.IS_PREVIEW === 'true' + dotenv.config() @@ -12,7 +14,7 @@ const config = { title: "QuestDB", tagline: "QuestDB is the fastest open source time series database", url: `https://${customFields.domain}`, - baseUrl: "/docs/", + baseUrl: isPreviews ? '/' : '/docs/', baseUrlIssueBanner: false, favicon: "/images/favicon.webp", organizationName: "QuestDB",