mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 21:24:35 +00:00
Compare commits
2 Commits
1b8ab9fecf
...
02b933d893
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02b933d893 | ||
|
|
439cc80546 |
@@ -22,8 +22,11 @@ ENV NODE_ENV production
|
|||||||
ENV NEXT_PUBLIC_SUPABASE_URL=https://placeholder.supabase.co
|
ENV NEXT_PUBLIC_SUPABASE_URL=https://placeholder.supabase.co
|
||||||
ENV NEXT_PUBLIC_SUPABASE_ANON_KEY=placeholder-anon-key
|
ENV NEXT_PUBLIC_SUPABASE_ANON_KEY=placeholder-anon-key
|
||||||
ENV SUPABASE_SERVICE_ROLE_KEY=placeholder-service-role-key
|
ENV SUPABASE_SERVICE_ROLE_KEY=placeholder-service-role-key
|
||||||
ENV STRIPE_SECRET_KEY=sk_test_placeholder_key
|
ENV STRIPE_SECRET_KEY=<REDACTED>
|
||||||
ENV RESEND_API_KEY=re_placeholder_key
|
ENV RESEND_API_KEY=<REDACTED>
|
||||||
|
|
||||||
|
# Aumentar memoria disponible para Node.js durante el build
|
||||||
|
ENV NODE_OPTIONS=--max-old-space-size=4096
|
||||||
|
|
||||||
# Build optimizado
|
# Build optimizado
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
@@ -46,7 +46,19 @@ class GoogleCalendarService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const credentials = JSON.parse(serviceAccountJson) as ServiceAccountConfig;
|
let credentials: ServiceAccountConfig;
|
||||||
|
|
||||||
|
try {
|
||||||
|
credentials = JSON.parse(serviceAccountJson) as ServiceAccountConfig;
|
||||||
|
} catch (jsonError) {
|
||||||
|
console.error('GoogleCalendar: Failed to parse GOOGLE_SERVICE_ACCOUNT_JSON', jsonError);
|
||||||
|
console.error('GoogleCalendar: Service account JSON value:', serviceAccountJson);
|
||||||
|
throw new Error('Invalid GOOGLE_SERVICE_ACCOUNT_JSON format. Please check environment variable.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!credentials.type || !credentials.project_id || !credentials.private_key) {
|
||||||
|
throw new Error('Invalid GOOGLE_SERVICE_ACCOUNT_JSON: Missing required fields');
|
||||||
|
}
|
||||||
|
|
||||||
const auth = new google.auth.GoogleAuth({
|
const auth = new google.auth.GoogleAuth({
|
||||||
credentials,
|
credentials,
|
||||||
|
|||||||
Reference in New Issue
Block a user