summaryrefslogtreecommitdiffstats
path: root/docusaurus/src/theme/NotFound/index.tsx
blob: 15e9fe667f15fb61aad2f2402cbd83d709c72073 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: AGPL-3.0-or-later */

import DDoSProtection from "./DDoSProtection";
import NotFound from "@theme-original/NotFound";
import React from "react";
import Redirection from "./Redirection";

export default (
  props: React.JSX.ElementAttributesProperty
): React.JSX.Element => (
  <>
    <Redirection />
    <DDoSProtection />
    <div style={{ display: "none" }}>
      <NotFound {...props} />
    </div>
  </>
);

// How can I customize the 404 page? · facebook/docusaurus · Discussion #6030
// https://github.com/facebook/docusaurus/discussions/6030