Files
my-links/next.config.js
Sonny f5c406a84c feat: favicon api always return an image
When the api cannot fetch the remote favicon, we return a placeholder image
2023-11-12 04:34:30 +01:00

33 lines
628 B
JavaScript

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