-
-
Save Royal-lobster/539c41c4e1035619810d13794da8a002 to your computer and use it in GitHub Desktop.
next.config.mjs for https://github.com/vercel/next.js/issues/54708
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createNextIntlPlugin from "next-intl/plugin"; | |
const withNextIntl = createNextIntlPlugin(); | |
/** @type {import('next').NextConfig} */ | |
const nextConfig = { | |
webpack: (config) => { | |
config.externals.push("pino-pretty", "lokijs", "encoding"); | |
return config; | |
}, | |
images: { | |
remotePatterns: [ | |
{ | |
protocol: "https", | |
hostname: "ipfs.everipedia.org", | |
pathname: "/ipfs/**", | |
}, | |
{ | |
protocol: "https", | |
hostname: "iq.wiki", | |
}, | |
{ | |
protocol: "https", | |
hostname: "images.mirror-media.xyz", | |
pathname: "/publication-images/**", | |
}, | |
{ | |
protocol: "https", | |
hostname: "i3.ytimg.com", | |
}, | |
{ | |
protocol: "https", | |
hostname: "coin-images.coingecko.com", | |
pathname: "/**", | |
}, | |
], | |
}, | |
async redirects() { | |
return [ | |
{ | |
source: "/rank/aiTokens", | |
destination: "/rank/ai-tokens", | |
permanent: true, | |
}, | |
{ | |
source: "/rank/stableCoins", | |
destination: "/rank/stable-coins", | |
permanent: true, | |
}, | |
]; | |
}, | |
}; | |
export default withNextIntl(nextConfig); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment