next.config.ts 683 B

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