Skip to content

Commit

Permalink
boolean env var for preview context
Browse files Browse the repository at this point in the history
  • Loading branch information
goodroot committed Nov 21, 2024
1 parent 90e6479 commit aee1573
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ 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()

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",
Expand Down

0 comments on commit aee1573

Please sign in to comment.