mirror of
https://github.com/Rohithgilla12/data-peek
synced 2026-05-23 17:38:26 +00:00
- 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.
39 lines
891 B
TypeScript
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;
|