Rename /analytics to /stats to work around adblockers (#437)

* Rename /analytics to /stats to work around adblockers

* Fix prettier lint
This commit is contained in:
Austin Chen 2022-06-07 08:37:23 -07:00 committed by GitHub
parent 4aec46f880
commit 2ac7caaf24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,11 @@ module.exports = {
destination: API_DOCS_URL, destination: API_DOCS_URL,
permanent: false, permanent: false,
}, },
{
source: '/analytics',
destination: '/stats',
permanent: true,
},
] ]
}, },
} }

View File

@ -5,7 +5,7 @@ import Analytics, {
CustomAnalytics, CustomAnalytics,
FirebaseAnalytics, FirebaseAnalytics,
getStaticPropz, getStaticPropz,
} from '../analytics' } from '../stats'
export const getStaticProps = fromPropz(getStaticPropz) export const getStaticProps = fromPropz(getStaticPropz)