website/next.config.js

41 lines
714 B
JavaScript

/** @type {import('next').NextConfig} */
import { getLocaleList } from './utils/locale.js';
const nextConfig = {
reactStrictMode: true,
i18n: {
locales: getLocaleList(),
defaultLocale: 'en-US',
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'github.com',
port: '',
pathname: '/**'
},
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
port: '',
pathname: '/u/**'
},
{
protocol: 'https',
hostname: 'github.githubassets.com',
port: '',
pathname: '/images/**'
},
{
protocol: 'https',
hostname: 'cdn.discordapp.com',
port: '',
pathname: '/avatars/**'
}
]
}
};
export default nextConfig;