system-prompts-and-models-o.../salesflow-saas/frontend/next.config.js
2026-04-04 18:04:21 +03:00

54 lines
1.4 KiB
JavaScript

/** @type {import('next').NextConfig} */
/**
* Marketing static files: frontend/public/dealix-* (sync: node scripts/sync-marketing-to-public.cjs)
* Redirects fix 404 when opening /dealix-marketing without index.html (Next static serving).
*/
const nextConfig = {
output: "standalone",
images: {
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
pathname: "/**",
},
],
},
async redirects() {
return [
{
source: "/dealix-marketing",
destination: "/dealix-marketing/index.html",
permanent: false,
},
{
source: "/dealix-marketing/",
destination: "/dealix-marketing/index.html",
permanent: false,
},
{
source: "/dealix-presentations",
destination: "/dealix-presentations/00-dealix-company-master-ar.html",
permanent: false,
},
{
source: "/dealix-presentations/",
destination: "/dealix-presentations/00-dealix-company-master-ar.html",
permanent: false,
},
{
source: "/investors",
destination: "/dealix-marketing/investor/00-investor-dealix-full-ar.html",
permanent: false,
},
{
source: "/investors/",
destination: "/dealix-marketing/investor/00-investor-dealix-full-ar.html",
permanent: false,
},
];
},
};
module.exports = nextConfig;