mediahub-fe/next.config.mjs

109 lines
2.4 KiB
JavaScript
Raw 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",
// },
2026-01-09 07:30:51 +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",
// },
// { protocol: "https", hostname: "netidhub.com" },
// {
// protocol: "https",
// hostname: "netidhub.com",
// },
// ],
// },
2024-11-26 03:09:48 +00:00
images: {
remotePatterns: [
{
protocol: "https",
hostname: "api.lorem.space",
2025-07-19 19:44:27 +00:00
pathname: "/**",
2024-11-26 03:09:48 +00:00
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
2025-07-19 19:44:27 +00:00
pathname: "/**",
2024-11-26 03:09:48 +00:00
},
{
protocol: "https",
hostname: "a0.muscache.com",
2025-07-19 19:44:27 +00:00
pathname: "/**",
2024-11-26 03:09:48 +00:00
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
2025-07-19 19:44:27 +00:00
pathname: "/**",
2024-11-26 03:09:48 +00:00
},
{
protocol: "https",
hostname: "i.pravatar.cc",
2025-07-19 19:44:27 +00:00
pathname: "/**",
2024-11-26 03:09:48 +00:00
},
2025-07-19 13:37:18 +00:00
{
protocol: "https",
hostname: "mediahub.polri.go.id",
2025-07-19 19:44:27 +00:00
pathname: "/**",
2025-07-19 13:37:18 +00:00
},
{
protocol: "https",
hostname: "new.netidhub.com",
pathname: "/**",
},
2024-12-24 12:55:28 +00:00
{
protocol: "https",
hostname: "netidhub.com",
2025-07-19 19:44:27 +00:00
pathname: "/**",
2024-12-24 18:19:39 +00:00
},
2026-01-09 07:30:51 +00:00
{
protocol: "https",
hostname: "new.netidhub.com",
pathname: "/**",
},
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)));