fix: some cases where favicon are broken

This commit is contained in:
Sonny
2023-11-12 01:44:30 +01:00
parent 57905d1485
commit c35eb67890
5 changed files with 88 additions and 109 deletions

View File

@@ -1,25 +1,29 @@
const { i18n } = require("./next-i18next.config");
/** @type {import('next').NextConfig} */
/** @type {import("next").NextConfig} */
const config = {
i18n,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
use: ["@svgr/webpack"]
});
return config;
},
images: {
domains: ["localhost", "t3.gstatic.com", "lh3.googleusercontent.com"],
formats: ["image/webp"],
remotePatterns: [
{ hostname: "localhost" },
{ hostname: "t3.gstatic.com" },
{ hostname: "lh3.googleusercontent.com" }
],
formats: ["image/webp"]
},
reactStrictMode: false,
experimental: {
webpackBuildWorker: true,
webpackBuildWorker: true
},
output: "standalone",
output: "standalone"
};
module.exports = config;