auth
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user