add analytics

This commit is contained in:
Cory Dransfeldt 2022-06-07 16:33:59 -07:00
parent ce3d02cab6
commit 3981af5581
3 changed files with 18 additions and 9 deletions

View file

@ -69,6 +69,18 @@ module.exports = withBundleAnalyzer({
},
]
},
async rewrites() {
return [
{
source: '/script.12587e3213z2t1891zaz.js', // plausible script proxy
destination: 'https://plausible.io/js/script.outbound-links.js',
},
{
source: '/api/12761a4481f2x6771zab', // plausible api proxy
destination: 'https://plausible.io/api/event',
},
]
},
webpack: (config, { dev, isServer }) => {
config.module.rules.push({
test: /\.(png|jpe?g|gif|mp4)$/i,