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

fix: edge function should not operate if not targeting definition files #2543

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

smoya
Copy link
Member

@smoya smoya commented Jan 8, 2024

Description

This PR fixes the Netlify edge-function we use for serving JSON Schema files through our website. See this README section.
The main logic of this edge-function was being executed for non-legitimate requests (requests that should just pass through).

Additionally, I'm adding a mermaid flowchart documenting the flow this edge-function should accomplish.

Related issue(s)
#2493

Copy link

netlify bot commented Jan 8, 2024

Deploy Preview for asyncapi-website ready!

Name Link
🔨 Latest commit a121a97
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/659d1922b7ff7f00089e977a
😎 Deploy Preview https://deploy-preview-2543--asyncapi-website.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.

@smoya smoya changed the title Fix/edge function fix: edge function should not operate if not targeting definition files Jan 8, 2024
@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Jan 8, 2024

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 47
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-2543--asyncapi-website.netlify.app/

Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

lgtm

@derberg
Copy link
Member

derberg commented Jan 9, 2024

/rtm

@asyncapi-bot asyncapi-bot merged commit cca81f7 into asyncapi:master Jan 9, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants