next.config.ts 623 B

1234567891011121314151617181920212223242526
  1. import type { NextConfig } from 'next'
  2. import createNextIntlPlugin from 'next-intl/plugin'
  3. const withNextIntl = createNextIntlPlugin()
  4. const nextConfig: NextConfig = {
  5. output: 'standalone',
  6. images: {
  7. remotePatterns: [],
  8. },
  9. allowedDevOrigins: ['10.0.0.217', '192.168.30.111'],
  10. experimental: {
  11. proxyClientMaxBodySize: '2gb',
  12. },
  13. async rewrites() {
  14. return [
  15. // Old /api/files/ URLs stored in the DB before the protected/ restructure
  16. {
  17. source: '/api/files/:path*',
  18. destination: '/api/protected/files/:path*',
  19. },
  20. ]
  21. },
  22. }
  23. export default withNextIntl(nextConfig)