SurfSense/surfsense_web/next.config.ts
DESKTOP-RTLN3BA\$punk ad41967d28 refactor: migrated to next 16, updated fumadocs
- Deleted the empty middleware file as it was temporarily disabled for client-side i18n implementation.
- Updated `next`, `next-intl`, and `fumadocs` packages to their latest versions.
- Cleaned up the `next.config.ts` by removing the eslint configuration.
- Enhanced `tsconfig.json` with additional paths for `fumadocs-mdx`.
- Adjusted imports in `layout.tsx` and `request.ts` for better structure and functionality.
2025-12-20 04:24:40 -08:00

39 lines
1 KiB
TypeScript

import { createMDX } from "fumadocs-mdx/next";
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
// Create the next-intl plugin
const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
const nextConfig: NextConfig = {
output: "standalone",
// Disable StrictMode for BlockNote compatibility with React 19/Next 15
reactStrictMode: false,
typescript: {
ignoreBuildErrors: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
// Mark BlockNote server packages as external
serverExternalPackages: ["@blocknote/server-util"],
// Configure webpack to handle blocknote packages
webpack: (config, { isServer }) => {
if (isServer) {
// Don't bundle these packages on the server
config.externals = [...(config.externals || []), "@blocknote/server-util"];
}
return config;
},
};
// Wrap the config with MDX and next-intl plugins
const withMDX = createMDX({});
export default withNextIntl(withMDX(nextConfig));