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

Upgrade all packages to work with node 18, update legacy code for current Next version #51

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

brendacs
Copy link
Member

@brendacs brendacs commented Nov 28, 2023

Upgraded packages

  • next
  • react
  • react-dom
  • typescript
  • eslint plugins

Added packages

  • unified
  • remark plugins

Replaces

  • next-mdx-enhanced with @next/mdx

Component updates

  • add legacyBehavior prop to Link
  • rename Layout's propdeprecatedLayout to wideLayout
  • add css hack to remove frontmatter from showing up on .mdx pages
  • remove hideTopButton from frontmatter
  • have Layout to wrap all components by moving to _app.tsx with conditions
  • add Component properties displayName, wideLayout, useHeader to pass to customize Layout in _app.tsx
  • update getPostData function with unified - may not need this
  • add TODO in Layout to remove frontMatter prop which may be unused now that next-mdx-enhanced is removed

@brendacs brendacs changed the title Upgrade all packages to work with node 18 Upgrade all packages to work with node 18, update legacy code for current Next version Nov 29, 2023
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.

None yet

1 participant