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: v3 specification reference section not loading during dev mode #3004

Merged
merged 4 commits into from
May 31, 2024

Conversation

jerensl
Copy link
Contributor

@jerensl jerensl commented May 30, 2024

Description
These breaking changes are part of NextJS 13. If the Link Components have a tag it should wrap passHref and should put legacyBehavior. Another alternative is to use codemods.

Related issue(s)
Fixes #3002

Screenshot 2024-05-30 122801

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

Copy link

netlify bot commented May 30, 2024

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 56ca6b3
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/665889deb08fec0008538b92
😎 Deploy Preview https://deploy-preview-3004--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.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented May 30, 2024

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 34
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🟠 PWA 56

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

@@ -191,7 +191,7 @@ export default function DocsLayout({ post, navItems = {}, children }: IDocsLayou
</span>
<span className='font-sans text-sm text-gray-800 antialiased'>
Check&nbsp;
<Link href='https://www.asyncapi.com/blog?tags=Release+Notes'>
<Link href='https://www.asyncapi.com/blog?tags=Release+Notes' passHref legacyBehavior>
Copy link
Member

Choose a reason for hiding this comment

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

Why don't we remove the a tag inside the Link and use the new Link Component only?

Copy link
Contributor Author

@jerensl jerensl May 30, 2024

Choose a reason for hiding this comment

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

I thought TailwindCSS would not work but after carefully double-checking it's working fine. The latest commit should remove the a tag and put the behavior and style to the new next/link component

@akshatnema
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit b34f149 into asyncapi:master May 31, 2024
15 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.

v3 specification reference section not loading
3 participants