mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 23:24:36 +00:00
Compare commits
2 Commits
02b933d893
...
ddeb2f28bd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddeb2f28bd | ||
|
|
0ef3d19f08 |
@@ -25,8 +25,8 @@ ENV SUPABASE_SERVICE_ROLE_KEY=placeholder-service-role-key
|
|||||||
ENV STRIPE_SECRET_KEY=<REDACTED>
|
ENV STRIPE_SECRET_KEY=<REDACTED>
|
||||||
ENV RESEND_API_KEY=<REDACTED>
|
ENV RESEND_API_KEY=<REDACTED>
|
||||||
|
|
||||||
# Aumentar memoria disponible para Node.js durante el build
|
# Deshabilitar Google Calendar temporalmente para evitar errores de build
|
||||||
ENV NODE_OPTIONS=--max-old-space-size=4096
|
ENV GOOGLE_SERVICE_ACCOUNT_JSON=""
|
||||||
|
|
||||||
# Build optimizado
|
# Build optimizado
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
@@ -53,11 +53,13 @@ class GoogleCalendarService {
|
|||||||
} catch (jsonError) {
|
} catch (jsonError) {
|
||||||
console.error('GoogleCalendar: Failed to parse GOOGLE_SERVICE_ACCOUNT_JSON', jsonError);
|
console.error('GoogleCalendar: Failed to parse GOOGLE_SERVICE_ACCOUNT_JSON', jsonError);
|
||||||
console.error('GoogleCalendar: Service account JSON value:', serviceAccountJson);
|
console.error('GoogleCalendar: Service account JSON value:', serviceAccountJson);
|
||||||
throw new Error('Invalid GOOGLE_SERVICE_ACCOUNT_JSON format. Please check environment variable.');
|
// Don't throw error - just warn and continue with Google Calendar disabled
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!credentials.type || !credentials.project_id || !credentials.private_key) {
|
if (!credentials.type || !credentials.project_id || !credentials.private_key) {
|
||||||
throw new Error('Invalid GOOGLE_SERVICE_ACCOUNT_JSON: Missing required fields');
|
console.warn('GoogleCalendar: Invalid GOOGLE_SERVICE_ACCOUNT_JSON - missing required fields. Calendar sync disabled.');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auth = new google.auth.GoogleAuth({
|
const auth = new google.auth.GoogleAuth({
|
||||||
@@ -72,7 +74,8 @@ class GoogleCalendarService {
|
|||||||
console.log('GoogleCalendar: Service initialized successfully');
|
console.log('GoogleCalendar: Service initialized successfully');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('GoogleCalendar: Initialization failed', error);
|
console.error('GoogleCalendar: Initialization failed', error);
|
||||||
throw error;
|
// Don't throw - just warn to allow build to continue
|
||||||
|
console.warn('GoogleCalendar: Continuing with Google Calendar disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user