next.config.ts 652 B

12345678910111213141516171819202122232425262728293031323334
  1. import { configHeader } from '@/utils/constants';
  2. import type { NextConfig } from "next";
  3. const nextConfig: NextConfig = {
  4. devIndicators: false,
  5. reactStrictMode: true,
  6. typescript: {
  7. ignoreBuildErrors: false,
  8. },
  9. images: {
  10. unoptimized: true,
  11. remotePatterns: [],
  12. },
  13. async headers() {
  14. return configHeader;
  15. },
  16. async rewrites() {
  17. return [
  18. {
  19. source: '/:slug.html',
  20. destination: '/product/:slug',
  21. },
  22. ];
  23. },
  24. compress: true,
  25. experimental: {
  26. optimizePackageImports: ["lodash", "date-fns"],
  27. serverActions: {
  28. bodySizeLimit: "2mb",
  29. },
  30. },
  31. };
  32. export default nextConfig;