next.config.ts 745 B

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