{"id":22998806,"url":"https://github.com/wangrunlin/seo-nextjs-starter","last_synced_at":"2025-04-22T19:09:15.611Z","repository":{"id":266782565,"uuid":"899342027","full_name":"wangrunlin/seo-nextjs-starter","owner":"wangrunlin","description":"A simple and easy-to-use starter template for building SEO optimized Next.js applications with best practices and performance in mind.","archived":false,"fork":false,"pushed_at":"2025-03-22T08:53:26.000Z","size":648,"stargazers_count":18,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T19:09:08.506Z","etag":null,"topics":["nextjs","nextjs-starter","nextjs-template","seo","starter","template"],"latest_commit_sha":null,"homepage":"https://seo-nextjs-starter.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangrunlin.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"wangrunlin","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":["https://alin.run/sponsor"]}},"created_at":"2024-12-06T04:25:36.000Z","updated_at":"2025-03-31T15:50:59.000Z","dependencies_parsed_at":"2024-12-06T05:25:13.295Z","dependency_job_id":"a4a6e14d-951e-41d1-ab62-9071da8759f8","html_url":"https://github.com/wangrunlin/seo-nextjs-starter","commit_stats":null,"previous_names":["wangrunlin/seo-nextjs-starter"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrunlin%2Fseo-nextjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrunlin%2Fseo-nextjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrunlin%2Fseo-nextjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrunlin%2Fseo-nextjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangrunlin","download_url":"https://codeload.github.com/wangrunlin/seo-nextjs-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250306639,"owners_count":21408926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","nextjs-starter","nextjs-template","seo","starter","template"],"created_at":"2024-12-15T06:14:34.979Z","updated_at":"2025-04-22T19:09:15.583Z","avatar_url":"https://github.com/wangrunlin.png","language":"TypeScript","funding_links":["https://ko-fi.com/wangrunlin","https://alin.run/sponsor"],"categories":[],"sub_categories":[],"readme":"# SEO Next.js 启动模板\n\n[![中文](https://img.shields.io/badge/中文-Click_here-brightgreen?style=for-the-badge)](README-zh.md)\n[![English](https://img.shields.io/badge/English-Click_here-brightgreen?style=for-the-badge)](README.md)\n\n[![GitHub][GitHub]][GitHub URL]\n[![GitHub stars][Stars]][Stars URL]\n[![GitHub forks][Forks]][Forks URL]\n[![GitHub issues][Issues]][Issues URL]\n[![GitHub license][License]][License URL]\n[![Last Commit][Last Commit]][Last Commit URL]\n\n[![使用此模板][Use This Template]][Use This Template URL]\n\n[![使用 Vercel 部署][Deploy with Vercel]][Deploy with Vercel URL]\n\n## 预览\n\n您可以在 [SEO Next.js 启动模板预览][Preview URL] 查看应用程序的实时预览。\n\n## 使用此模板\n\n您可以通过点击下面的按钮使用此模板创建自己的项目：\n\n[![使用此模板][Use This Template]][Use This Template URL]\n\n## 关于此模板\n\nSEO Next.js 启动模板旨在帮助开发人员快速设置一个强大且对 SEO 友好的 Web 应用程序，使用 Next.js。此模板为构建优化搜索引擎和性能的应用程序提供了坚实的基础。\n\n### 特性\n\n- 服务器端渲染以提高 SEO\n- 静态站点生成以实现快速性能\n- 动态路由以实现灵活导航\n- 内置 CSS 和 Sass 支持\n- API 路由以实现后端功能\n\n## 使用此模板的入门指南\n\n要开始使用此模板，请按照以下步骤操作：\n\n1. 克隆仓库。\n2. 使用 `pnpm install` 安装依赖。\n3. 根据提供的 `.env.example` 文件创建 `.env` 文件并填写您自己的值。\n4. 可选，您可以直接编辑 `src/config.ts` 文件以设置您的配置值。\n5. 使用 `pnpm dev` 运行开发服务器。\n\n## 谁在使用此模板\n\n此模板旨在为希望快速设置 SEO 友好应用程序的开发人员和团队提供支持。以下是一些使用此模板或类似设置的项目和公司的示例：\n\n- [Toolbox Hub](https://toolbox-hub.com) - 在线工具箱 | 免费且实用的在线工具集合\n- [楼梯计算器](https://stair-calculator.net) - 楼梯计算器专业版：精确设计与施工测量\n\n### 提交您的网站\n\n如果您使用此模板创建了项目并希望分享，请在 [提交您的网站](https://github.com/wangrunlin/seo-nextjs-starter/issues/new?assignees=wangrunlin\u0026labels=website%2C+submission\u0026template=submit-website.yml\u0026title=%5BWebsite+Submission%5D%3A+) 问题中提交您的网站链接。\n\n## 环境变量\n\n您可以使用环境变量配置您的应用程序。`.env.example` 文件包含以下变量：\n\n```dotenv\n# 替换为您自己的网站名称\nNEXT_PUBLIC_SITE_NAME=\"SEO Next.js 启动模板\"\n\n# 替换为您自己的标题\nNEXT_PUBLIC_TITLE=\"SEO Next.js 启动模板 - 一个为 SEO 优化的 Next.js 项目启动模板\"\n\n# 替换为您自己的描述\nNEXT_PUBLIC_DESCRIPTION=\"一个简单易用的启动模板，用于构建符合最佳实践和性能的 SEO 优化 Next.js 应用程序。\"\n\n# 替换为您自己的 URL\nNEXT_PUBLIC_URL=\"https://example.com\"\n\n# \u003c可选\u003e 如果您想使用 Google Analytics\nNEXT_PUBLIC_GOOGLE_ANALYTICS_ID=\"your-google-analytics-id\"\n```\n\n## Vercel 环境变量\n\n如果您将应用程序部署到 Vercel，您可以直接在 Vercel 仪表板中设置环境变量。请按照以下步骤操作：\n\n1. 转到您的 Vercel 仪表板并选择您的项目。\n2. 导航到“设置”选项卡。\n3. 向下滚动到“环境变量”部分。\n4. 点击“添加”以创建新的环境变量。\n5. 输入变量名称（例如，`NEXT_PUBLIC_SITE_NAME`）及其对应值。\n6. 对所有需要设置的环境变量重复此操作。\n7. 添加变量后，重新部署您的应用程序以应用更改。\n\n有关在 Vercel 中配置环境变量的更多信息，请参阅 [Vercel 环境变量文档][Vercel Environment Variables]。\n\n## 技术细节\n\n### 元数据管理\n\n在 Next.js 中，您可以使用各种约定管理元数据，包括 `robots.ts`、`sitemap.ts` 和 `layout.tsx` 中的布局元数据。这使您能够定义应用程序如何与搜索引擎和社交媒体平台交互。有关更多详细信息，请参阅 [Next.js 元数据文档][Next.js Metadata Documentation]。\n\n### Open Graph 图像生成\n\n为了优化社交媒体图像生成，您可以使用 Vercel 的 `@vercel/og` 库。此库允许您使用 HTML 和 CSS 创建动态 Open Graph 图像，从而增强您的内容在社交媒体平台上的展示效果。有关更多信息，请查看 [Open Graph 图像生成文档][Open Graph Image Generation Documentation]。\n\n## SEO 资源\n\n有关 SEO 最佳实践和指南的更多信息，请查看 [Ahrefs SEO 指南][Ahrefs SEO Guide]。\n\n## 部署\n\n您可以通过单击按钮轻松将应用程序部署到 Vercel。点击下面的按钮开始：\n\n[![使用 Vercel 部署][Deploy with Vercel]][Deploy with Vercel URL]\n\n## 文档\n\n有关更多信息，请查看官方 Next.js 文档 [nextjs.org/docs](https://nextjs.org/docs)。\n\n## 贡献\n\n我们欢迎贡献！如果您想为此项目做出贡献，请遵循仓库中的指南。\n\n## 许可证\n\n此项目根据 MIT 许可证进行许可。\n\n[Stars]: https://img.shields.io/github/stars/wangrunlin/seo-nextjs-starter?style=for-the-badge\n[Stars URL]: https://github.com/wangrunlin/seo-nextjs-starter/stargazers\n[Forks]: https://img.shields.io/github/forks/wangrunlin/seo-nextjs-starter?style=for-the-badge\n[Forks URL]: https://github.com/wangrunlin/seo-nextjs-starter/forks\n[Issues]: https://img.shields.io/github/issues/wangrunlin/seo-nextjs-starter?style=for-the-badge\n[Issues URL]: https://github.com/wangrunlin/seo-nextjs-starter/issues\n[License]: https://img.shields.io/github/license/wangrunlin/seo-nextjs-starter?style=for-the-badge\n[License URL]: https://github.com/wangrunlin/seo-nextjs-starter/blob/main/LICENSE\n[Last Commit]: https://img.shields.io/github/last-commit/wangrunlin/seo-nextjs-starter?style=for-the-badge\n[Last Commit URL]: https://github.com/wangrunlin/seo-nextjs-starter/commits/main\n[GitHub]: https://img.shields.io/badge/GitHub-wangrunlin%2Fseo--nextjs--starter-blue?style=for-the-badge\u0026logo=github\n[GitHub URL]: https://github.com/wangrunlin/seo-nextjs-starter\n[Use This Template]: https://img.shields.io/badge/Use_this_template-Click_here-brightgreen?style=for-the-badge\n[Use This Template URL]: https://github.com/new?template_name=seo-nextjs-starter\u0026template_owner=wangrunlin\n[Deploy with Vercel]: https://vercel.com/button\n[Deploy with Vercel URL]: https://vercel.com/import/project?template=https://github.com/wangrunlin/seo-nextjs-starter\n[Preview URL]: https://seo-nextjs-starter.vercel.app/\n[Vercel Environment Variables]: https://vercel.com/docs/projects/environment-variables\n[Next.js Metadata Documentation]: https://nextjs.org/docs/app/api-reference/file-conventions/metadata\n[Open Graph Image Generation Documentation]: https://vercel.com/docs/functions/og-image-generation\n[Ahrefs SEO Guide]: https://ahrefs.com/seo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrunlin%2Fseo-nextjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangrunlin%2Fseo-nextjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrunlin%2Fseo-nextjs-starter/lists"}