import type { NextConfig } from 'next' import createNextIntlPlugin from 'next-intl/plugin'; const nextConfig: NextConfig = { allowedDevOrigins: ['ironieopen.local', '*.ironieopen.local'], images: { remotePatterns: [ { protocol: 'https', hostname: 'avatars.steamstatic.com', port: '', pathname: '/**', }, ], }, serverExternalPackages: ['ssh2', 'ssh2-sftp-client'], webpack: (config, { isServer }) => { if (isServer) { const externals = Array.isArray(config.externals) ? config.externals : [] externals.push({ ssh2: 'commonjs ssh2', 'ssh2-sftp-client': 'commonjs ssh2-sftp-client', } as any) ;(config as any).externals = externals } return config }, } const withNextIntl = createNextIntlPlugin(); export default withNextIntl(nextConfig);