Skip to content

Commit

Permalink
test base url
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y committed Sep 4, 2024
1 parent 9066bcd commit 6b6d67f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const lightCodeTheme = require('prism-react-renderer').themes.dracula;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;

// Determine if we're in production or preview mode
const isProd = process.env.REACT_APP_PREVIEW_BASE === undefined;
// const isProd = process.env.REACT_APP_PREVIEW_BASE === undefined;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand All @@ -14,11 +14,9 @@ const config = {
favicon: '/assets/website/favicon.ico',

// Set the production url or preview url of your site here
url: isProd ? 'https://push.org/' : 'https://push-protocol.github.io',
url: 'https://push-protocol.github.io',
// Set the baseUrl depending on the environment
baseUrl: isProd
? '/'
: `/push-website/pr-preview/${process.env.REACT_APP_PREVIEW_BASE}/`,
baseUrl: `/push-website/pr-preview/${process.env.REACT_APP_PREVIEW_BASE}/`,
trailingSlash: true,

// GitHub pages deployment config.
Expand Down

0 comments on commit 6b6d67f

Please sign in to comment.