2024-12-29 02:50:00 +00:00
|
|
|
import type { NextConfig } from "next";
|
|
|
|
|
2024-12-29 06:53:51 +00:00
|
|
|
const nextConfig: NextConfig = {
|
|
|
|
images: {
|
|
|
|
remotePatterns: [
|
|
|
|
{
|
|
|
|
protocol: "https",
|
|
|
|
hostname: "avatars.githubusercontent.com",
|
|
|
|
},
|
2024-12-29 07:48:00 +00:00
|
|
|
{
|
|
|
|
protocol: "https",
|
|
|
|
hostname: "seccdn.libravatar.org",
|
|
|
|
},
|
2024-12-29 08:20:36 +00:00
|
|
|
{
|
|
|
|
protocol: "http",
|
|
|
|
hostname: "localhost",
|
|
|
|
},
|
2024-12-29 06:53:51 +00:00
|
|
|
],
|
|
|
|
},
|
2025-01-05 01:05:48 +00:00
|
|
|
webpack(config, { isServer }) {
|
|
|
|
if (isServer) {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.node$/,
|
|
|
|
use: "node-loader",
|
|
|
|
});
|
|
|
|
}
|
|
|
|
return config;
|
|
|
|
},
|
2024-12-29 06:53:51 +00:00
|
|
|
};
|
2024-12-29 02:50:00 +00:00
|
|
|
|
|
|
|
export default nextConfig;
|