Based on my standard starting config but includes a bunch of blog-specific stuff, including RSS feed generation (pattern taken from the Next.js site).
Still mostly just blending a bunch of Next.js examples into a cohesive, production-ready bundle with a focus on static deployments (I use Firebase Hosting for most of my deployments).
npm run export
.npm run dev
/components/page.js
or /components/page.css
to edit the base page stylesindex.mdx
or add your own pages/pages/blog
. The meta
variable must be present with at least title
, layout
, link
variablesnpm run export
to get the static versions in the out
directorypurgecss
and cssnano
only run on the production build and this could cause production-only problems if there are issues with those packages. But, since the css output is cached as the files are changed, new selectors are not picked up as files are edited in local dev mode. So the dev mode experience is broken if purgecss
is enabled.<p>
tags. So, using some elements (<h1>
, etc) inside MDX will cause React validateDOMNesting
warnings. This is an MDX issue rather issue with this project.mdPlugins
to remarkPlugins
before MDX 2.0meta
tags./components/layout.js
could use some improvement.