mediahub-fe/next.config.mjs

60 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

2024-11-26 03:09:48 +00:00
import createNextIntlPlugin from "next-intl/plugin";
import nextra from "nextra";
import withBundleAnalyzer from "@next/bundle-analyzer";
/** @type {import('next').NextConfig} */
const withNextIntl = createNextIntlPlugin();
const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
});
const bundleAnalyzer = withBundleAnalyzer({
2024-12-24 12:55:28 +00:00
enabled: process.env.ANALYZE === "true",
2024-11-26 03:09:48 +00:00
});
const nextConfig = {
2025-07-14 15:55:51 +00:00
// i18n: {
// locales: ["en", "in"],
// defaultLocale: "in",
// },
2024-11-26 03:09:48 +00:00
images: {
remotePatterns: [
{
protocol: "https",
hostname: "api.lorem.space",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "a0.muscache.com",
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
},
{
protocol: "https",
hostname: "i.pravatar.cc",
},
2024-12-12 18:38:15 +00:00
{ protocol: "https", hostname: "netidhub.com" },
2024-12-24 12:55:28 +00:00
{
protocol: "https",
hostname: "netidhub.com",
2024-12-24 18:19:39 +00:00
},
2024-11-26 03:09:48 +00:00
],
},
2025-01-01 14:10:58 +00:00
// eslint: {
2025-07-14 15:55:51 +00:00
// // Warning: This allows production builds to successfully complete even if
// // your project has ESLint errors.
2025-01-01 14:10:58 +00:00
// ignoreDuringBuilds: true,
// },
2024-11-26 03:09:48 +00:00
};
export default bundleAnalyzer(withNextIntl(withNextra(nextConfig)));