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')({
|
const withPWA = require('next-pwa')({
|
||||||
disable: process.env.NODE_ENV !== 'production',
|
disable: process.env.NODE_ENV !== 'production',
|
||||||
dest: 'public',
|
dest: 'public',
|
||||||
@@ -7,7 +9,7 @@ const withPWA = require('next-pwa')({
|
|||||||
|
|
||||||
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
|
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
|
||||||
|
|
||||||
module.exports = withPWA({
|
module.exports = withPWA(withPlausibleProxy({
|
||||||
webpack: {
|
webpack: {
|
||||||
test: /\.svg$/,
|
test: /\.svg$/,
|
||||||
use: ['@svgr/webpack', 'url-loader'],
|
use: ['@svgr/webpack', 'url-loader'],
|
||||||
@@ -16,4 +18,4 @@ module.exports = withPWA({
|
|||||||
images: {
|
images: {
|
||||||
domains
|
domains
|
||||||
}
|
}
|
||||||
})
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user