next.config.ts 805 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. output: 'standalone',
  27. async rewrites() {
  28. return [
  29. {
  30. source: '/uploads/:path*',
  31. destination: '/api/uploads/:path*'
  32. }
  33. ];
  34. }
  35. };
  36. export default nextConfig;