Files
eventspace/frontend/next.config.ts
Felipe Cardoso 0afdbc973c Enable remote image loading in Next.js configuration
Added support for loading images from pragmazest.com and localhost. This allows flexibility for handling remote images during development and production. Adjustments align with application requirements for external asset management.
2025-03-14 01:17:07 +01:00

29 lines
530 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
// Ensure we can connect to the backend in Docker
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://backend:8000/:path*",
},
];
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "*.pragmazest.com",
},
{
protocol: "http",
hostname: "*localhost*",
},
],
},
};
export default nextConfig;