website/next.config.js

35 lines
595 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: 'cdn.discordapp.com',
port: '',
pathname: '/avatars/*'
}
]
}
};
export default nextConfig;