22 lines
802 B
JavaScript
22 lines
802 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
images: {
|
|
domains: ['res.cloudinary.com'],
|
|
},
|
|
transpilePackages: ['@rentaldrivego/types'],
|
|
async rewrites() {
|
|
return [
|
|
{ source: '/marketplace', destination: 'http://localhost:3001/marketplace' },
|
|
{ source: '/marketplace/:path*', destination: 'http://localhost:3001/marketplace/:path*' },
|
|
{ source: '/dashboard', destination: 'http://localhost:3002/dashboard' },
|
|
{ source: '/dashboard/:path*', destination: 'http://localhost:3002/dashboard/:path*' },
|
|
{ source: '/admin', destination: 'http://localhost:3003/admin' },
|
|
{ source: '/admin/:path*', destination: 'http://localhost:3003/admin/:path*' },
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig |