data-peek/apps/web/next.config.ts
Rohith Gilla bc6be6dc9b feat: enforce www redirection and update URLs for SEO consistency
- Added a redirect from non-www to www for improved SEO.
- Updated sitemap and SEO-related URLs to use the www subdomain.
- Adjusted breadcrumbs component to reflect the new URL structure.
2025-12-24 20:06:22 +05:30

39 lines
891 B
TypeScript

import type { NextConfig } from "next";
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 nextConfig;