diff --git a/.github/workflows/preview-env-deploy.yml b/.github/workflows/preview-env-deploy.yml index 058eaaeddfc..389b79cd2b0 100644 --- a/.github/workflows/preview-env-deploy.yml +++ b/.github/workflows/preview-env-deploy.yml @@ -28,11 +28,11 @@ jobs: run: npm ci - name: Build - run: npm run build env: NODE_OPTIONS: --max_old_space_size=8192 - #DOCS_SITE_URL: https://${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} - #DOCS_SITE_BASE_URL: /pr-${{ github.event.number }}/ + DOCS_SITE_URL: https://preview.docs.camunda.cloud + DOCS_SITE_BASE_URL: "/pr-3928/" + run: npm run build - name: Authenticate with Google Cloud uses: google-github-actions/auth@v2 diff --git a/docusaurus.config.js b/docusaurus.config.js index 37a99734369..7692e1c3e35 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -4,16 +4,15 @@ const { unsupportedVersions } = require("./src/versions"); const latestVersion = require("./src/versions").versionMappings[0].docsVersion; // Read url and baseUrl from environment variables -//const siteUrl = process.env.DOCS_SITE_URL || "https://docs.camunda.io"; // const siteBaseUrl = process.env.DOCS_SITE_BASE_URL || "/"; module.exports = { title: "Camunda 8 Docs", tagline: "Documentation for all components of Camunda 8", // url: "https://camunda-cloud.github.io", - url: "https://preview.docs.camunda-cloud", + url: process.env.DOCS_SITE_URL || "https://docs.camunda.io", // baseUrl: "/camunda-cloud-documentation/", - baseUrl: "/pr-3928/", + baseUrl: process.env.DOCS_SITE_BASE_URL || "/", customFields: { canonicalUrlRoot: "https://docs.camunda.io", },