# leerob/next-mdx-blog

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/leerob-next-mdx-blog).**

7,555 stars · 1,442 forks · TypeScript

## Links

- GitHub: https://github.com/leerob/next-mdx-blog
- Homepage: https://next-blog-mdx.vercel.app
- awesome-repositories: https://awesome-repositories.com/repository/leerob-next-mdx-blog.md

## Topics

`blog` `mdx` `nextjs` `postgres` `react` `tailwindcss` `vercel`

## Description

This is a static site generator and blog publishing system built on Next.js that compiles MDX content into HTML at build time. It uses file-based routing to map each page to a URL path automatically, and applies utility-first CSS styling through Tailwind CSS for visual design.

The project includes a pre-built blog starter template that can be deployed with a single click to Vercel’s edge network, where it benefits from automatic optimizations and serverless function support. It features built-in analytics instrumentation that collects page view and visitor data without manual setup, and supports light and dark mode theme switching based on user preference or system settings. For content management, it provides Markdown and MDX content authoring with syntax highlighting for code blocks, along with XML sitemap generation for search engine discovery.

The system also includes a redirect management capability that stores URL mapping rules in an optional Postgres database, resolving them at request time to forward visitors from outdated addresses without requiring redeployment.

## Tags

### Content Management & Publishing

- [Static Site Generation](https://awesome-repositories.com/f/content-management-publishing/static-site-document-generators/static-site-generators/static-site-generation.md) — Builds pages from MDX files at compile time for fast performance as a static site generator.
- [MDX Blog Publishing](https://awesome-repositories.com/f/content-management-publishing/blog-publishing-tools/mdx-blog-publishing.md) — Publishes a personal blog using Markdown with embedded React components, styled with Tailwind CSS and deployed to Vercel. ([source](https://cdn.jsdelivr.net/gh/leerob/next-mdx-blog@main/README.md))
- [File-Based Routing](https://awesome-repositories.com/f/content-management-publishing/file-based-routing.md) — Maps file structure in the pages directory to URL paths automatically.
- [MDX Content Management](https://awesome-repositories.com/f/content-management-publishing/static-site-document-generators/static-site-generators/mdx-content-management.md) — Creates blog content using standard Markdown or MDX syntax with embedded JSX components. ([source](https://next-blog-mdx.vercel.app))
- [MDX Processors](https://awesome-repositories.com/f/content-management-publishing/static-site-document-generators/static-site-generators/mdx-processors.md) — Transforms MDX files into static HTML at build time for fast page loads.
- [Vercel](https://awesome-repositories.com/f/content-management-publishing/analytics-integrations/vercel.md) — Integrates with Vercel's built-in analytics service for automatic page view and visitor data collection.
- [Page View Tracking](https://awesome-repositories.com/f/content-management-publishing/page-view-tracking.md) — Collects analytics data automatically through Vercel Analytics without manual instrumentation. ([source](https://cdn.jsdelivr.net/gh/leerob/next-mdx-blog@main/README.md))

### User Interface & Experience

- [Tailwind CSS Integration](https://awesome-repositories.com/f/user-interface-experience/css-component-libraries/tailwind-css-integration.md) — Ships a pre-configured project that applies utility-first CSS styling with Tailwind and TypeScript.

### Web Development

- [Starter Templates](https://awesome-repositories.com/f/web-development/next-js-development/starter-templates.md) — Provides a pre-built blog template using MDX content with Next.js and Tailwind CSS for static site generation.
- [Utility-First CSS Frameworks](https://awesome-repositories.com/f/web-development/utility-first-css-frameworks.md) — Composes visual design by applying atomic, single-purpose CSS classes directly in markup.
- [Database-Backed Redirect Stores](https://awesome-repositories.com/f/web-development/dynamic-redirect-managers/database-backed-redirect-stores.md) — Provides a redirect management system that stores URL mappings in a Postgres database for dynamic link handling.
- [URL Redirections](https://awesome-repositories.com/f/web-development/url-routing/redirection-rules/geographic-redirection/url-redirections.md) — Forwards visitors from outdated or moved page addresses to their new locations without showing a broken link. ([source](https://next-blog-mdx.vercel.app))

### DevOps & Infrastructure

- [One-Click Deployments](https://awesome-repositories.com/f/devops-infrastructure/cloud-agent-orchestration/cloud-agent-deployers/one-click-deployments.md) — Clones a pre-built blog starter and deploys it to a hosting platform with a single click. ([source](https://cdn.jsdelivr.net/gh/leerob/next-mdx-blog@main/README.md))
- [Vercel](https://awesome-repositories.com/f/devops-infrastructure/deployment-management-strategies/static-site-deployments/vercel.md) — Deploys a Next.js application to Vercel with automatic optimizations, analytics, and serverless function support.
- [Deployment Templates](https://awesome-repositories.com/f/devops-infrastructure/deployment-management-strategies/static-site-deployments/vercel/deployment-templates.md) — Provides a project template optimized for one-click deployment to Vercel with built-in analytics support.
- [Edge Network Deployments](https://awesome-repositories.com/f/devops-infrastructure/deployment-management-strategies/static-site-deployments/vercel/edge-network-deployments.md) — Deploys the application to Vercel's edge network with automatic optimizations and serverless function support.
- [Serverless Deployment](https://awesome-repositories.com/f/devops-infrastructure/serverless-deployment.md) — Deploys the application to Vercel's edge network with automatic optimizations and serverless function support.

### System Administration & Monitoring

- [Built-in Analytics Instrumentation](https://awesome-repositories.com/f/system-administration-monitoring/built-in-analytics-instrumentation.md) — Provides automatic page view and visitor data collection via Vercel's built-in analytics service.
