A feature-rich Next.js 15 multilingual starter template to help you quickly build globally-ready websites.
- 🌐 Built-in i18n support (English, Chinese, Japanese)
- 🎨 Modern UI design with Tailwind CSS
- 🌙 Dark/Light theme toggle
- 📱 Responsive layout
- 📝 MDX blog system
- 🔍 SEO optimization
- 📊 Integrated analytics tools
- Google Analytics
- Baidu Analytics
- Google Adsense
- Vercel Analytics
- Clone the repository:
git clone https://github.com/weijunext/nextjs-15-starter.git
- Install dependencies:
npm install
# or
yarn
# or
pnpm install
- Copy environment variables:
cp .env.example .env
- Start the development server:
npm run dev
Visit http://localhost:3000 to view your application.
-
Basic Setup
- Edit
config/site.ts
for website information - Update icons and logo in
public/
- Configure
app/sitemap.ts
for sitemap - Update
app/robots.ts
for robots.txt
- Edit
-
i18n Setup
- Add/modify language files in
i18n/messages/
- Configure supported languages in
i18n/routing.ts
- Set up i18n routing in
middleware.ts
- Create pages under
app/[locale]/
- Use the
Link
component fromi18n/routing.ts
instead of Next.js default
- Add/modify language files in
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...
Reference types/blog.ts
for supported fields.
Manage static page content in content/[page]/[locale].mdx
.
Built-in comprehensive SEO features:
- Server-side rendering and static generation
- Automatic sitemap.xml generation
- robots.txt configuration
- Optimized metadata
- Open Graph support
- Multilingual SEO support
Enable analytics by adding IDs in .env
:
NEXT_PUBLIC_GOOGLE_ANALYTICS=
NEXT_PUBLIC_BAIDU_TONGJI=
NEXT_PUBLIC_GOOGLE_ADSENSE=
- Next.js 15
- TypeScript
- Tailwind CSS
- Shadcn/ui
- next-intl
- MDX
- Zustand
- Vercel
MIT
Issues and Pull Requests are welcome!
Next.js full-stack specialist providing expert services in project development, performance optimization, and SEO improvement.
For consulting and training opportunities, reach out at [email protected]