mirror of
https://github.com/Rohithgilla12/data-peek
synced 2026-04-21 12:57:16 +00:00
Co-authored-by: tembo[bot] <208362400+tembo[bot]@users.noreply.github.com> Co-authored-by: Rohith <gillarohith1@gmail.com>
51 lines
1.2 KiB
TypeScript
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,
|
|
},
|
|
})
|