Use next/image for all <img> tags
This commit is contained in:
+13
-2
@@ -1,11 +1,22 @@
|
||||
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
|
||||
|
||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||
enabled: process.env.ANALYZE === 'true',
|
||||
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
||||
enabled: process.env.ANALYZE === "true",
|
||||
});
|
||||
|
||||
module.exports = withBundleAnalyzer({
|
||||
target: "server",
|
||||
images: {
|
||||
domains: [
|
||||
"api.sika.sik.party",
|
||||
"api.dev.sik.party",
|
||||
"static.sika.sik.party",
|
||||
"sahkoinsinoorikilta.fi",
|
||||
"api.sahkoinsinoorikilta.fi",
|
||||
"static.sahkoinsinoorikilta.fi",
|
||||
"placehold.it"
|
||||
],
|
||||
},
|
||||
webpack: (config) => {
|
||||
config.plugins.push(
|
||||
new FaviconsWebpackPlugin({
|
||||
|
||||
Reference in New Issue
Block a user