chore(docs): make baseUrl configurable

Use BASE_URL environment variable to configure baseUrl in docusaurus config. Otherwise, `/` is used by default.
This commit is contained in:
Ali BARIN
2022-04-09 15:31:18 +02:00
committed by Ömer Faruk Aydın
parent 31403b7020
commit d4ad8645c9

View File

@@ -9,7 +9,7 @@ const config = {
title: 'Automatisch Docs',
tagline: 'Automatisch Docs',
url: 'https://docs.automatisch.io',
baseUrl: '/',
baseUrl: process.env.BASE_URL ? process.env.BASE_URL : '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',