data-peek/apps/web/next.config.ts
tembo[bot] ce97633bf4
Fix Sentry SDK deprecations (#149)
Co-authored-by: tembo[bot] <208362400+tembo[bot]@users.noreply.github.com>
Co-authored-by: Rohith <gillarohith1@gmail.com>
2026-04-07 17:28:32 +05:30

51 lines
1.2 KiB
TypeScript

import type { NextConfig } from 'next'
import { withSentryConfig } from '@sentry/nextjs'
const nextConfig: NextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'pub-84538e6ab6f94b80b94b8aa308ad1270.r2.dev',
},
],
formats: ['image/avif', 'image/webp'],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
compress: true,
poweredByHeader: false,
reactStrictMode: true,
experimental: {
optimizePackageImports: ['lucide-react'],
},
// Redirect non-www to www for SEO consistency
async redirects() {
return [
{
source: '/:path*',
has: [
{
type: 'host',
value: 'datapeek.dev',
},
],
destination: 'https://www.datapeek.dev/:path*',
permanent: true,
},
]
},
}
export default withSentryConfig(nextConfig, {
org: 'rohith-gilla',
project: 'data-peek-app',
silent: !process.env.CI,
widenClientFileUpload: true,
webpack: {
treeshake: {
removeDebugLogging: true,
},
automaticVercelMonitors: true,
},
})