36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Leaner production runtime: deploy uses .next/standalone and drops node_modules.
|
|
output: "standalone",
|
|
images: {
|
|
formats: ["image/avif", "image/webp"],
|
|
// Every quality value used across the page. Required from Next.js 16 on.
|
|
qualities: [70, 72, 75, 80, 82, 88, 90],
|
|
// Project media served live from the meshkee API. The storage host has
|
|
// already changed once mid-project (parminstorage.ir -> parspack.net) —
|
|
// keep both around since either could be what a given item still points to.
|
|
remotePatterns: [
|
|
{ protocol: "https", hostname: "meshkee-storage.sas.amin.parminstorage.ir" },
|
|
{ protocol: "https", hostname: "cdn.meshkee.com" },
|
|
{ protocol: "https", hostname: "c804387.parspack.net" },
|
|
],
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/our-services",
|
|
destination: "/atelier",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/portfolios/:path*",
|
|
destination: "/projects/:path*",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|