kontenhumas-fe/next.config.mjs

108 lines
2.8 KiB
JavaScript
Raw Normal View History

2025-09-25 15:46:47 +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({
// enabled: process.env.ANALYZE === "true",
// });
// const nextConfig = {
// // i18n: {
// // locales: ["en", "in"],
// // defaultLocale: "in",
// // },
// webpack: (config) => {
// config.resolve.fallback = {
// ...config.resolve.fallback,
// fs: false,
// path: false,
// os: false,
// };
// return config;
// },
// 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: "dev.mikulnews.com",
// },
// {
// protocol: "https",
// hostname: "netidhub.com",
// },
// ],
// },
// // eslint: {
// // // Warning: This allows production builds to successfully complete even if
// // // your project has ESLint errors.
// // ignoreDuringBuilds: true,
// // },
// };
// export default bundleAnalyzer(withNextIntl(withNextra(nextConfig)));
2025-09-23 13:07:34 +00:00
import createNextIntlPlugin from "next-intl/plugin";
import withBundleAnalyzer from "@next/bundle-analyzer";
const withNextIntl = createNextIntlPlugin();
const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
const nextConfig = {
2025-09-25 15:46:47 +00:00
webpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false,
os: false,
};
return config;
},
2025-09-23 13:07:34 +00:00
images: {
remotePatterns: [
2025-09-25 15:46:47 +00:00
{ 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: "dev.mikulnews.com" },
2025-10-01 22:20:12 +00:00
{ protocol: "https", hostname: "kontenhumas.com" },
2025-09-25 15:46:47 +00:00
{ protocol: "https", hostname: "netidhub.com" },
2025-10-02 02:08:08 +00:00
{ protocol: "https", hostname: "kontenhumas.com" },
2025-09-23 13:07:34 +00:00
],
},
};
2025-09-30 06:51:55 +00:00
export default bundleAnalyzer(withNextIntl(nextConfig));