Add withPlausibleProxy to next.config.js
This commit is contained in:
+4
-2
@@ -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
|
||||
}
|
||||
})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user