import type { NextConfig } from "next"; import { withSentryConfig } from "@sentry/nextjs"; const nextConfig: NextConfig = { images: { domains: ['images.unsplash.com'], }, eslint: { ignoreDuringBuilds: true, }, compiler: { removeConsole: process.env.NODE_ENV === 'production', }, }; // A no-op wrap when SENTRY_DSN isn't configured for this deployment — safe in // every environment (dev, or a fresh deploy that hasn't set up Sentry yet). export default process.env.NEXT_PUBLIC_SENTRY_DSN ? withSentryConfig(nextConfig, { silent: true, disableLogger: true }) : nextConfig;