@docusaurus/core
Version:
Easy to Maintain Open Source Documentation Websites
21 lines (20 loc) • 749 B
TypeScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { type ReactNode } from 'react';
import './styles.module.css';
/**
* We want to help the users with a bad baseUrl configuration (very common
* error). Help message is inlined, and hidden if JS or CSS is able to load.
*
* This component only inserts the base URL banner for the homepage, to avoid
* polluting every statically rendered page.
*
* Note: it might create false positives (ie network failures): not a big deal
*
* @see https://github.com/facebook/docusaurus/pull/3621
*/
export default function MaybeBaseUrlIssueBanner(): ReactNode;