Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const baseConfig: NextConfig = {
poweredByHeader: false,
reactStrictMode: true,
reactCompiler: true,
trailingSlash: true,
};

const withBundleAnalyzer = bundleAnalyzer({
Expand All @@ -23,7 +24,6 @@ const withBundleAnalyzer = bundleAnalyzer({

// Set up Nextra with its configuration
const withNextra = nextra({
defaultShowCopyCode: true,
latex: true,
contentDirBasePath: '/',
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "next start",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind"
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind && cp out/404/index.html out/404.html"
},
"dependencies": {
"@commitlint/cli": "^20.3.0",
Expand Down
13 changes: 13 additions & 0 deletions src/app/404/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import NotFoundCanvas from '@/components/NotFoundCanvas';

export default function NotFound() {
return (
<div style={{ textAlign: 'center', padding: '2rem' }}>
<h1>Page not found</h1>
<p>Sorry, that page does not exist.</p>
<div style={{ maxWidth: '800px', margin: '0 auto' }}>
<NotFoundCanvas />
</div>
</div>
);
}
14 changes: 2 additions & 12 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
import NotFoundCanvas from '@/components/NotFoundCanvas';
import NotFound from '@/app/404/page';

export default function NotFound() {
return (
<div style={{ textAlign: 'center', padding: '2rem' }}>
<h1>Page not found</h1>
<p>Sorry, that page does not exist.</p>
<div style={{ maxWidth: '800px', margin: '0 auto' }}>
<NotFoundCanvas />
</div>
</div>
);
}
export default NotFound;
9 changes: 0 additions & 9 deletions src/content/404.mdx

This file was deleted.