import type { NextConfig } from 'next' const nextConfig: NextConfig = { transpilePackages: ['@innungsapp/shared'], experimental: { typedRoutes: true, }, // Serve uploaded files async rewrites() { return [ { source: '/uploads/:path*', destination: '/api/uploads/:path*', }, ] }, } export default nextConfig