import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { remotePatterns: [ { protocol: "https", hostname: "cdn.discordapp.com", }, { protocol: "https", hostname: "mc-heads.net", }, ], }, async redirects() { return [ { source: "/@:username", destination: "/user/:username", permanent: true, }, ]; }, typescript: { ignoreBuildErrors: true, }, }; export default nextConfig;