Skip to content

Commit

Permalink
docs: add custom 404 page (#5393)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery authored Nov 3, 2023
1 parent 5916acb commit e452582
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/docs/src/routes/404.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { component$ } from '@builder.io/qwik';
import BuilderContentComp from '../components/builder-content';
import { Header } from '../components/header/header';
import { QWIK_PUBLIC_API_KEY } from '../constants';

const MODEL = 'error';

export default component$(() => {
return (
<div>
<Header />
<BuilderContentComp apiKey={QWIK_PUBLIC_API_KEY} model={MODEL} tag="div" />
</div>
);
});
2 changes: 2 additions & 0 deletions packages/docs/src/routes/404/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import _404 from '../404';
export default _404;

0 comments on commit e452582

Please sign in to comment.