Files
Spanglish/frontend/next.config.js
2026-01-29 14:13:11 -03:00

32 lines
620 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['localhost', 'images.unsplash.com'],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: 'localhost',
port: '3001',
},
],
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://localhost:3001/api/:path*',
},
{
source: '/uploads/:path*',
destination: 'http://localhost:3001/uploads/:path*',
},
];
},
};
module.exports = nextConfig;