-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
26 lines (25 loc) · 948 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/** @type {import('next').NextConfig} */
const WindiCSSWebpackPlugin = require('windicss-webpack-plugin')
const { withPlaiceholder } = require("@plaiceholder/next");
const withPWA = require("next-pwa");
module.exports = withPWA(
withPlaiceholder({
reactStrictMode: true,
webpack(config) {
config.plugins.push(new WindiCSSWebpackPlugin)
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"]
})
return config
},
images: {
domains: ['cdn.yhz610.com','static.anzifan.com', 'cdn.sspai.com', 'cdn.dribbble.com', 'image.freepik.com', 'avatars.githubusercontent.com', 'cdn.jsdelivr.net', 'image.cugxuan.cn', 'blog-static.mikuchan.top', 'amazonaws.com', 'img.zhheo.com', 'www.aohuiliu.fun', 'rxhsk.xicp.fun', 'www.fomal.cc'],
},
pwa: {
dest: "public",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
},
}))