This is a blog template built with:
- Framework: Next.js
- Deployment: Vercel
- Styling: Tailwind CSS
- Analytics: Vercel Analytics
- Database (Optional): Postgres
This application requires Node.js v18.17+.
git clone https://github.com/leerob/next-mdx-blog.git
cd next-mdx-blog
pnpm install
pnpm dev
Create a .env.local
file with your POSTGRES_URL
environment variable to store redirects.
CREATE TABLE redirects (
id SERIAL PRIMARY KEY,
source VARCHAR(255) NOT NULL,
destination VARCHAR(255) NOT NULL,
permanent BOOLEAN NOT NULL
);