| 123456789101112131415161718192021222324252627282930313233 |
- import { configHeader } from '@/utils/constants';
- import type { NextConfig } from "next";
- const nextConfig: NextConfig = {
- reactStrictMode: true,
- typescript: {
- ignoreBuildErrors: false,
- },
- images: {
- unoptimized: true,
- remotePatterns: [],
- },
- async headers() {
- return configHeader;
- },
- async rewrites() {
- return [
- {
- source: '/:slug.html',
- destination: '/product/:slug',
- },
- ];
- },
- compress: true,
- experimental: {
- optimizePackageImports: ["lodash", "date-fns"],
- serverActions: {
- bodySizeLimit: "2mb",
- },
- },
- };
- export default nextConfig;
|