This commit is contained in:
2025-12-31 19:55:43 +01:00
parent 8260bf7baf
commit 167e82a52b
66 changed files with 5124 additions and 228 deletions

View File

@@ -45,9 +45,8 @@ const nextConfig = {
contentDispositionType: 'inline',
},
async rewrites() {
// Always use the internal Docker API URL in development
// This ensures the website container can fetch images during optimization
const baseUrl = 'http://api:3000';
// Use API_BASE_URL if set, otherwise use internal Docker URL
const baseUrl = process.env.API_BASE_URL || 'http://api:3000';
return [
{
@@ -76,4 +75,4 @@ const nextConfig = {
},
};
export default nextConfig;
export default nextConfig;