Skip to content

Commit

Permalink
add not found wrapper and redirect (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
brock-statsig authored Jan 3, 2025
1 parent 8600a37 commit 20da237
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ const config: Config = {
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
from: "/client/concepts/bootstrapping",
to: "/sdk_monitoring/",
},
{
from: "/client/concepts/bootstrapping",
to: "/client/concepts/initialize/#2-bootstrap-initialization",
Expand Down
14 changes: 14 additions & 0 deletions src/theme/NotFound/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { useEffect } from 'react';
import NotFound from '@theme-original/NotFound';
import type NotFoundType from '@theme/NotFound';
import type {WrapperProps} from '@docusaurus/types';

type Props = WrapperProps<typeof NotFoundType>;

export default function NotFoundWrapper(props: Props): JSX.Element {
return (
<>
<NotFound {...props} />
</>
);
}

0 comments on commit 20da237

Please sign in to comment.