ifixkart-admin/next.config.ts
adithiyan b5837073e7 feat: add warranties, refunds, notification templates, user POS analytics, credit & delivery services
New pages:
- app/(admin)/warranties/ — full warranty management with claims
- app/(admin)/refunds/ — refund management
- app/(admin)/notification-templates/ — email/SMS template editor
- app/(admin)/user-pos-analytics/ — per-user POS analytics

New components:
- components/quotations/ — quotation components
- components/ui/PartNumbersModal.tsx — part numbers selection

New services:
- creditService.ts, deliverySettingsService.ts
- notificationTemplateService.ts, roleNotificationSettingsService.ts

Updated:
- Sidebar navigation, dashboard, orders, POS sessions, products
- Bulk quotations, CRM leads/quotations, notifications gateway
- settings, service invoices, quotes, technician, users pages
- adminService, billingFinanceService, catalogService, client
- inventoryPosService, notificationGatewayService, openwaService, userService
- Removed pos-sync page (merged into POS sessions)
2026-10-13 22:05:55 +05:30

55 lines
1.2 KiB
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
optimizePackageImports: ['lucide-react', 'framer-motion', 'date-fns', 'recharts'],
},
async rewrites() {
const backendUrl = (process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8000")
.replace(/\/api\/v1\/?$/, '')
.replace(/\/+$/, '');
const mediaUrl = "https://ifixkartbe.trionixsolution.com";
return [
{
source: "/api/v1/:path*",
destination: `${backendUrl}/api/v1/:path*`,
},
{
source: "/uploads/:path*",
destination: `${mediaUrl}/uploads/:path*`,
},
{
source: "/openwa/:path*",
destination: "http://127.0.0.1:8088/:path*",
},
];
},
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '8000',
pathname: '/uploads/**',
},
{
protocol: 'http',
hostname: '127.0.0.1',
port: '8000',
pathname: '/uploads/**',
},
{
protocol: 'https',
hostname: 'ifixkartbe.trionixsolution.com',
pathname: '/uploads/**',
},
],
},
};
export default nextConfig;