fix docker?

This commit is contained in:
g
2026-01-11 07:48:01 +00:00
parent db757d0107
commit 2477e9bb0f
7 changed files with 41 additions and 120 deletions

View File

@@ -25,7 +25,7 @@ const baseConfig = {
},
async rewrites() {
const apiBaseUrl = process.env.API_BASE_URL;
if (!apiBaseUrl || apiBaseUrl === 'undefined') {
console.warn('⚠️ API_BASE_URL not set! Set it to your backend domain');
console.warn('⚠️ Using localhost fallback - this will fail in production!');
@@ -36,7 +36,7 @@ const baseConfig = {
},
];
}
console.log(`🔗 API rewrites pointing to: ${apiBaseUrl}`);
return [
{