From 0b32dd4f527f0f9ca3012fe292495bcd34f2ba1c Mon Sep 17 00:00:00 2001 From: Jordan Violet Date: Sat, 24 Sep 2022 21:24:16 -0400 Subject: [PATCH] fixed (maybe?) baseurl --- .github/workflows/build-and-deploy-prod-gh-pages.yml | 5 +++-- .github/workflows/firebase-hosting-pull-request.yml | 2 -- docusaurus.config.js | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-deploy-prod-gh-pages.yml b/.github/workflows/build-and-deploy-prod-gh-pages.yml index e21e37330..956692da4 100644 --- a/.github/workflows/build-and-deploy-prod-gh-pages.yml +++ b/.github/workflows/build-and-deploy-prod-gh-pages.yml @@ -22,12 +22,13 @@ concurrency: group: "pages" cancel-in-progress: true +env: + BASE_URL: '/developer.sailpoint.com/' + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: publish: runs-on: ubuntu-latest - env: - NODE_ENV: 'production' steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Check out repo diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 4852e65d2..02e518549 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -13,8 +13,6 @@ jobs: - uses: actions/checkout@v2 - run: npm install && npm run docusaurus gen-api-docs all && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 - - env: - NODE_ENV: 'development' with: repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVELOPER_COMMUNITY_SITE }}' diff --git a/docusaurus.config.js b/docusaurus.config.js index df0645b9e..931c4fffb 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -7,13 +7,13 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula"); const footer = require("./footer"); const navbar = require("./navbar"); const plugins = require("./plugins"); -const baseUrl = process.env.NODE_ENV == 'production' ? '/developer.sailpoint.com/' : '/'; +const baseUrl = process.env.BASE_URL ?? '/'; /** @type {import('@docusaurus/types').Config} */ const config = { title: "SailPoint Developer Community", url: "https://developer.sailpoint.com", - baseUrl: baseUrl, + baseUrl, favicon: "img/SailPoint-Logo-Icon.ico", onBrokenLinks: "warn", onBrokenMarkdownLinks: "warn",