next.config.ts 495 B

12345678910111213141516171819202122232425
  1. import { configHeader } from '@/utils/constants';
  2. import type { NextConfig } from "next";
  3. const nextConfig: NextConfig = {
  4. reactStrictMode: true,
  5. typescript: {
  6. ignoreBuildErrors: false,
  7. },
  8. images: {
  9. unoptimized: true,
  10. remotePatterns: [],
  11. },
  12. async headers() {
  13. return configHeader;
  14. },
  15. compress: true,
  16. experimental: {
  17. optimizePackageImports: ["lodash", "date-fns"],
  18. serverActions: {
  19. bodySizeLimit: "2mb",
  20. },
  21. },
  22. };
  23. export default nextConfig;