next.config.ts 781 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import type { NextConfig } from "next";
  2. const nextConfig: NextConfig = {
  3. /* config options here */
  4. reactStrictMode: false,
  5. productionBrowserSourceMaps: true,
  6. images: {
  7. remotePatterns: [
  8. {
  9. protocol: "https",
  10. hostname: "localhost",
  11. port: "4000",
  12. pathname: "/uploads/**"
  13. },
  14. {
  15. protocol: "https",
  16. hostname: "img.youtube.com"
  17. }
  18. ],
  19. },
  20. experimental: {
  21. authInterrupts: true, // 인증 중단 기능 활성화
  22. serverActions: {
  23. bodySizeLimit: '200mb' // 최대 요청 본문 크기 설정
  24. }
  25. },
  26. async rewrites() {
  27. return [
  28. {
  29. source: '/uploads/:path*',
  30. destination: '/api/uploads/:path*'
  31. }
  32. ];
  33. }
  34. };
  35. export default nextConfig;