mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-05-18 16:46:44 +00:00
32 lines
587 B
TypeScript
32 lines
587 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "avatars.githubusercontent.com",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "seccdn.libravatar.org",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "localhost",
|
|
},
|
|
],
|
|
},
|
|
webpack(config, { isServer }) {
|
|
if (isServer) {
|
|
config.module.rules.push({
|
|
test: /\.node$/,
|
|
use: "node-loader",
|
|
});
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|