Update carousels, card hover, and IranBay branding.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const dashboardUrl =
|
||||
process.env.NEXT_PUBLIC_DASHBOARD_URL?.replace(/\/$/, "") ||
|
||||
"http://localhost:3002";
|
||||
|
||||
const customerDashboardUrl =
|
||||
process.env.NEXT_PUBLIC_CUSTOMER_DASHBOARD_URL?.replace(/\/$/, "") ||
|
||||
"http://customer.localhost:3002";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
source: "/login",
|
||||
destination: `${customerDashboardUrl}/login`,
|
||||
permanent: false,
|
||||
},
|
||||
{
|
||||
source: "/signup",
|
||||
destination: `${customerDashboardUrl}/login`,
|
||||
permanent: false,
|
||||
},
|
||||
{
|
||||
source: "/forgot-password",
|
||||
destination: `${dashboardUrl}/forgot-password`,
|
||||
permanent: false,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user