website/next.config.js
2023-08-29 09:35:25 +02:00

41 lines
718 B
JavaScript

/** @type {import('next').NextConfig} */
import { getLocaleList } from './src/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;