Skip to content

Instantly share code, notes, and snippets.

@Royal-lobster
Created October 21, 2024 07:24
Show Gist options
  • Save Royal-lobster/539c41c4e1035619810d13794da8a002 to your computer and use it in GitHub Desktop.
Save Royal-lobster/539c41c4e1035619810d13794da8a002 to your computer and use it in GitHub Desktop.
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