Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup! fix: prevent generation failed due to 4xx, 5xx api error #509

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

josix
Copy link
Collaborator

@josix josix commented Apr 12, 2024

Enhancement according to #507

Types of changes

  • Other (please describe)

Description

update to prevent all failures when getting talks/tutorials

Steps to Test This Pull Request

Expected behavior

  • Neltify build should be successful

Related Issue

#507

Additional context

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for ephemeral-sable-89c7e0 ready!

Name Link
🔨 Latest commit a6e9ae6
🔍 Latest deploy log https://app.netlify.com/sites/ephemeral-sable-89c7e0/deploys/661a5b1d303b5e0008b076a5
😎 Deploy Preview https://deploy-preview-509--ephemeral-sable-89c7e0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@josix josix requested review from SivanYeh and baby230211 April 12, 2024 09:05
Copy link
Collaborator

@baby230211 baby230211 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to we guarantee that talks and tutorials can be empty array if error on api.
Maybe we can remove this condition in

if (!talks.data) {
return []
}

@josix josix force-pushed the fix/ssg-failed-due-to-api-error branch from dd3bc6f to a6e9ae6 Compare April 13, 2024 10:14
@josix josix requested a review from baby230211 April 13, 2024 10:17
@josix
Copy link
Collaborator Author

josix commented Apr 13, 2024

Revised, thanks for pointing it ou.

Copy link
Collaborator

@baby230211 baby230211 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josix josix merged commit 21777f6 into main Apr 14, 2024
5 checks passed
@josix josix deleted the fix/ssg-failed-due-to-api-error branch April 14, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants