Update date: 2025-02-19
About Next Forge
Next Forge is a feature-rich Next.js 15 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-15-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.ts
to configure website information. - Update icons and logo in the
public/
directory. - Configure
app/sitemap.ts
andapp/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 blogs/[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 [email protected]