74 lines
1.4 KiB
JavaScript
74 lines
1.4 KiB
JavaScript
import nextMDX from "@next/mdx";
|
|
import path from "path";
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
optimizePackageImports: [
|
|
'lucide-react',
|
|
'react-icons',
|
|
'@tabler/icons-react',
|
|
'framer-motion',
|
|
'react-hook-form',
|
|
'@radix-ui/react-label',
|
|
'@radix-ui/react-slot',
|
|
],
|
|
},
|
|
|
|
reactStrictMode: false,
|
|
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'i.pravatar.cc',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'images.unsplash.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: '*.supabase.co',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'www.robot-speed.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'robot-speed.com',
|
|
},
|
|
],
|
|
formats: ['image/avif', 'image/webp'],
|
|
dangerouslyAllowSVG: true,
|
|
},
|
|
|
|
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
|
|
poweredByHeader: false,
|
|
compress: true,
|
|
|
|
typescript: {
|
|
ignoreBuildErrors: true
|
|
},
|
|
|
|
eslint: {
|
|
ignoreDuringBuilds: true
|
|
},
|
|
|
|
compiler: {
|
|
removeConsole: process.env.NODE_ENV === 'production',
|
|
},
|
|
|
|
transpilePackages: ['geist', 'cobe'],
|
|
};
|
|
|
|
const withMDX = nextMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
providerImportSource: '@mdx-js/react',
|
|
},
|
|
});
|
|
|
|
export default withMDX(nextConfig);
|