Thanks to visit codestin.com
Credit goes to github.com

Skip to content
View pairusuo's full-sized avatar

Block or report pairusuo

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
pairusuo/README.md

出海新人 | Freshman in the field of website builder

简洁的个人博客,快速切换语言 | Simple personal blog, switching languages quickly

基于 Next.js · Shadcn · Tailwind · MDX | Based on Next.js · Shadcn · Tailwind · MDX

🚀 快速开始

1. 克隆项目

git clone https://github.com/pairusuo/pairusuo.git your-project-name
cd your-project-name

2. 安装依赖

pnpm install

3. 配置语言,支持任意语言

  1. src/messages/ 目录下创建新的语言文件,如 fr.json
  2. 参考zh.json,复制现有语言文件的结构,并翻译内容
  3. src/lib/i18n.ts 中添加新语言的支持
  4. 修改 src/config/locale.js 使用新语言
// 选择你的语言: 'zh' | 'ja' | 'en'
export const LOCALE = 'zh';

4. 启动开发服务器

pnpm dev
pnpm dev:clean # 清除缓存启动服务

访问 http://localhost:3000 查看效果。

推送到 GitHub 私有仓库

git remote set-url origin https://github.com/your-username/your-project-name.git
git add .
git commit -m "Initial commit"
git push origin main

📦 部署到Cloudflare Pages(推荐)

# 部署preview环境
pnpm deploy:preview

# 部署production环境
pnpm deploy:prod

部署过程会提示授权cloudflare

📄 许可证

MIT License

🙏 致谢

Popular repositories Loading

  1. shipfast shipfast Public

    Forked from vietanhdev/shipfast

    The best free SaaS base for GenAI, LLM, and other AI Services. Ship your next Generative AI startups in days.

    TypeScript

  2. aicoverimage.com aicoverimage.com Public

    Transform your ideas into beautiful, professional cover images for blogs, social media, and products—no design skills required. Just describe your vision, and let AI do the rest.

  3. pairusuo pairusuo Public

    A minimal personal blog built with Next.js App Router, i18n, and MDX.

    TypeScript

  4. chinabrush chinabrush Public

    https://chinabrush.art

  5. clock-dashboard clock-dashboard Public

    Forked from teojs/clock-dashboard

    天气时钟看板

    Vue