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

Update docusaurus.config.ts

parent 344f03a8
Branches
No related tags found
No related merge requests found
Pipeline #222309 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment