Add withPlausibleProxy to next.config.js

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-10-27 06:51:45 +04:00
parent d0fcb08e01
commit f069b60b37
+4 -2
View File
@@ -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
}
})
}))