diff --git a/next.config.ts b/next.config.ts index fd7c7e3..8c34ea8 100644 --- a/next.config.ts +++ b/next.config.ts @@ -15,6 +15,7 @@ const baseConfig: NextConfig = { poweredByHeader: false, reactStrictMode: true, reactCompiler: true, + trailingSlash: true, }; const withBundleAnalyzer = bundleAnalyzer({ @@ -23,7 +24,6 @@ const withBundleAnalyzer = bundleAnalyzer({ // Set up Nextra with its configuration const withNextra = nextra({ - defaultShowCopyCode: true, latex: true, contentDirBasePath: '/', }); diff --git a/package.json b/package.json index 5f46804..cbee212 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/app/404/page.tsx b/src/app/404/page.tsx new file mode 100644 index 0000000..eb1ecb1 --- /dev/null +++ b/src/app/404/page.tsx @@ -0,0 +1,13 @@ +import NotFoundCanvas from '@/components/NotFoundCanvas'; + +export default function NotFound() { + return ( +
Sorry, that page does not exist.
+Sorry, that page does not exist.
-