Update date: 2025-02-19
About Next Forge
Next Forge is a feature-rich Next.js 16 multilingual starter template designed to help developers quickly build globally-ready websites. It comes with built-in i18n support, modern UI design, dark/light theme toggling, responsive layout, MDX blog system, SEO optimization, and integrated analytics tools.
β¨ Key Features
- π Built-in i18n Support: Supports English, Chinese, and Japanese out of the box, making it easy to create multilingual websites.
- π¨ Modern UI Design: Clean and modern UI powered by Tailwind CSS.
- π Dark/Light Theme Toggle: Allows users to switch between dark and light themes effortlessly.
- π± Responsive Layout: Fully responsive design ensures a great experience on both mobile and desktop devices.
- π MDX Blog System: Write blog posts using MDX for enhanced flexibility and power.
- π SEO Optimization: Comprehensive SEO features including automatic sitemap.xml generation, robots.txt configuration, and optimized metadata.
- π Analytics Integration: Integrated with Google Analytics, Baidu Analytics, Google Adsense, and Vercel Analytics for easy tracking and insights.
- πΏ Eco-Friendly Performance: Achieved A+ rating on Website Carbon, making it one of the most energy-efficient websites.
π Quick Start
-
Clone the repository:
git clone https://github.com/weijunext/nextjs-starter.git -
Install dependencies:
npm install -
Copy environment variables:
cp .env.example .env -
Start the development server:
npm run dev
Visit http://localhost:3000 to view your application.
βοΈ Configuration
-
Basic Setup:
- Edit
config/site.tsto configure website information. - Update icons and logo in the
public/directory. - Configure
app/sitemap.tsandapp/robots.ts.
- Edit
-
i18n Setup:
- Add or modify language files in
i18n/messages/. - Configure supported languages in
i18n/routing.ts. - Set up i18n routing in
middleware.ts.
- Add or modify language files in
π Content Management
Blog Posts
Create MDX files in blog/[locale] with the following format:
---
title: Post Title
description: Post Description
image: /image.png
slug: /url-path
tags: tag1,tag2
date: 2025-02-20
visible: published
pin: true
---
Post content...
Static Pages
Manage static page content in content/[page]/[locale].mdx.
π License
Next Forge is licensed under the MIT License, allowing you to freely use, modify, and distribute the template.
π€ Contributing
We welcome issues and pull requests! Your contributions help us improve this project.
About the Author
A Next.js full-stack specialist offering expert services in project development, performance optimization, and SEO improvement.
For consulting and training opportunities, reach out at weijunext@gmail.com