Skip to content

Commit ddb32ca

Browse files
committed
Fix baseURL to be able to run correctly in development environment
1 parent 02f1840 commit ddb32ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const config = {
1313
title: "Introduction to Algorithms",
1414
// tagline: '',
1515
url: "https://sikepuri-algorithm.github.io",
16-
baseUrl: process.env.BASE_URL,
16+
baseUrl: process.env.NODE_ENV ? "/" : process.env.BASE_URL,
1717
onBrokenLinks: "throw",
1818
onBrokenMarkdownLinks: "warn",
1919
favicon: "img/favicon.ico",

0 commit comments

Comments
 (0)