Skip to content

Commit

Permalink
update baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y committed Sep 12, 2024
1 parent 1bf648d commit dfc0e6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

const lightCodeTheme = require('prism-react-renderer').themes.dracula;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
const { getPreviewBasePath } = require('./basePath.js');

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand All @@ -17,7 +16,8 @@ const config = {
: 'https://push.org/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: process.env.GITHUB_ACTIONS ? `${getPreviewBasePath()}` : '/',
baseUrl:
`/push-website/pr-preview/${process.env.REACT_APP_PREVIEW_BASE}` || '/',
trailingSlash: true,

// GitHub pages deployment config.
Expand Down

0 comments on commit dfc0e6f

Please sign in to comment.