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

Use mdx-bundler #32

Merged
merged 27 commits into from
Sep 28, 2021
Merged

Use mdx-bundler #32

merged 27 commits into from
Sep 28, 2021

Conversation

sreetamdas
Copy link
Owner

@sreetamdas sreetamdas commented Sep 20, 2021

Issue

Currently, we compile all *.mdx files in src/content/* and ship to the page using getStaticProps — where the pages are dynamically imported once the page has been mounted.

Proposal

Bundle our .mdx files using mdx-bundler and move to using gray-matter for our frontmatter.

Remaining To-dos:

  • Sort posts on /blog according to frontmatter.publishedAt

@vercel
Copy link

vercel bot commented Sep 20, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sreetamdas/sreetamdascom/38bgW2KBkkeshzFTC65EbQVnJNAY
✅ Preview: https://sreetamdascom-git-feat-use-mdx-bundler-sreetamdas.vercel.app

@sreetamdas
Copy link
Owner Author

Build fails because pages like /about, /podcasts, etc. are not yet being bundled — TBD

@sreetamdas
Copy link
Owner Author

Note: fails on Netlify 😢

@sreetamdas sreetamdas marked this pull request as ready for review September 28, 2021 07:42
@sreetamdas sreetamdas merged commit dfb71db into main Sep 28, 2021
@sreetamdas sreetamdas deleted the feat/use-mdx-bundler branch September 28, 2021 07:43
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