diff --git a/next.config.js b/next.config.js index eebefd5..cd480c0 100644 --- a/next.config.js +++ b/next.config.js @@ -1,3 +1,5 @@ +const {withPlausibleProxy} = require('next-plausible') + const withPWA = require('next-pwa')({ disable: process.env.NODE_ENV !== 'production', dest: 'public', @@ -7,7 +9,7 @@ const withPWA = require('next-pwa')({ const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost' -module.exports = withPWA({ +module.exports = withPWA(withPlausibleProxy({ webpack: { test: /\.svg$/, use: ['@svgr/webpack', 'url-loader'], @@ -16,4 +18,4 @@ module.exports = withPWA({ images: { domains } -}) +}))