Skip to content
Snippets Groups Projects
Commit 72544988 authored by Ilya Zhukov's avatar Ilya Zhukov
Browse files

Update docusaurus.config.ts

parent fd7c3ac0
Branches
No related tags found
No related merge requests found
Pipeline #222300 passed
...@@ -3,7 +3,7 @@ import type {Config} from '@docusaurus/types'; ...@@ -3,7 +3,7 @@ import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic'; import type * as Preset from '@docusaurus/preset-classic';
const branchName = process.env.CI_COMMIT_REF_NAME || 'main'; // Default to 'main' if undefined const branchName = process.env.CI_COMMIT_REF_NAME || 'main'; // Default to 'main' if undefined
const branchSuffix = branchName.match(/^instances\/(.*)$/)[1]; const branchSuffix = branchName.match(/^instances\/(.*)$/)?.[1] || 'main';
const url = branchName === 'main' ? '/intro2sc-handson' :`/intro2sc-handson/${branchSuffix}/`; // Adjust as needed const url = branchName === 'main' ? '/intro2sc-handson' :`/intro2sc-handson/${branchSuffix}/`; // Adjust as needed
const config: Config = { const config: Config = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment