diff --git a/next.config.js b/next.config.js index 818517c6..9b98f17a 100644 --- a/next.config.js +++ b/next.config.js @@ -112,7 +112,7 @@ module.exports = (phase, { defaultConfig }) => { redirects: async () => [ // NOTE: don't remove this, it ensures de-AMPing the site hasn't offended our google overlords too badly! // https://developers.google.com/search/docs/advanced/experience/remove-amp#remove-only-amp - { source: "/:slug/amp.html", destination: "/:slug/", statusCode: 301 }, + { source: "/notes/:slug/amp.html", destination: "/notes/:slug/", statusCode: 301 }, // remnants of previous sites/CMSes: { source: "/index.xml", destination: "/feed.xml", permanent: true }, diff --git a/pages/404.tsx b/pages/404.tsx index 2e9ff9e4..c1a5710c 100644 --- a/pages/404.tsx +++ b/pages/404.tsx @@ -1,3 +1,4 @@ +import { NextSeo } from "next-seo"; import Image from "../components/Image"; import Link from "../components/Link"; import { styled } from "../lib/styles/stitches.config"; @@ -20,13 +21,17 @@ const H1 = styled("h1", { const fourOhFour = () => { return ( -