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 = {
|
|
|
|
|
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-24 12:55:28 +00:00
|
|
|
{
|
|
|
|
|
protocol: "https",
|
|
|
|
|
hostname: "netidhub.com",
|
|
|
|
|
}
|
2024-11-26 03:09:48 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default bundleAnalyzer(withNextIntl(withNextra(nextConfig)));
|