1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 14:25:31 -04:00

remove broken fathom dashboard iframes

This commit is contained in:
2022-09-23 16:39:59 -04:00
parent ad45eb6cc5
commit beb74f84ce
8 changed files with 227 additions and 257 deletions

View File

@@ -114,6 +114,12 @@ module.exports = (phase) => {
{ source: "/apple-touch-icon-precomposed.png", destination: "/static/favicons/apple-touch-icon.png" },
],
redirects: async () => [
{
source: "/stats/",
destination: `https://app.usefathom.com/share/${config.fathomSiteId}/${config.siteDomain}`,
permanent: false,
},
// 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: "/notes/:slug/amp.html", destination: "/notes/:slug/", statusCode: 301 },