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.
๐ 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 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 weijunext@gmail.com