93 lines
2.1 KiB
JavaScript
93 lines
2.1 KiB
JavaScript
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",
|
|
// },
|
|
// 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",
|
|
// },
|
|
// ],
|
|
// },
|
|
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: "new.netidhub.com",
|
|
pathname: "/**",
|
|
},
|
|
],
|
|
},
|
|
// eslint: {
|
|
// // Warning: This allows production builds to successfully complete even if
|
|
// // your project has ESLint errors.
|
|
// ignoreDuringBuilds: true,
|
|
// },
|
|
};
|
|
|
|
export default bundleAnalyzer(withNextIntl(withNextra(nextConfig)));
|