{"id":19900637,"url":"https://github.com/microcmsio/nextjs-simple-blog-template","last_synced_at":"2025-05-02T23:31:06.200Z","repository":{"id":169618988,"uuid":"613779935","full_name":"microcmsio/nextjs-simple-blog-template","owner":"microcmsio","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-24T04:59:32.000Z","size":1337,"stargazers_count":52,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-01T01:53:05.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nextjs-simple-blog-template.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/microcmsio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-14T08:59:54.000Z","updated_at":"2025-04-19T07:21:31.000Z","dependencies_parsed_at":"2023-12-11T07:28:05.845Z","dependency_job_id":null,"html_url":"https://github.com/microcmsio/nextjs-simple-blog-template","commit_stats":null,"previous_names":["microcmsio/nextjs-simple-blog-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microcmsio%2Fnextjs-simple-blog-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microcmsio%2Fnextjs-simple-blog-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microcmsio%2Fnextjs-simple-blog-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microcmsio%2Fnextjs-simple-blog-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microcmsio","download_url":"https://codeload.github.com/microcmsio/nextjs-simple-blog-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252122212,"owners_count":21698305,"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":[],"created_at":"2024-11-12T20:12:50.418Z","updated_at":"2025-05-02T23:31:05.763Z","avatar_url":"https://github.com/microcmsio.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# シンプルなブログ\n\n![](public/img-cover.png)\n\nmicroCMS 公式のシンプルなブログのテンプレートです。\n\n## 動作環境\n\nNode.js 18 以上\n\n## 環境変数の設定\n\nルート直下に`.env`ファイルを作成し、下記の情報を入力してください。\n\n```\nMICROCMS_API_KEY=xxxxxxxxxx\nMICROCMS_SERVICE_DOMAIN=xxxxxxxxxx\nBASE_URL=xxxxxxxxxx\n```\n\n`MICROCMS_API_KEY`  \nmicroCMS 管理画面の「サービス設定 \u003e API キー」から確認することができます。\n\n`MICROCMS_SERVICE_DOMAIN`  \nmicroCMS 管理画面の URL（https://xxxxxxxx.microcms.io）の xxxxxxxx の部分です。\n\n`BASE_URL`\nデプロイ先の URL です。プロトコルから記載してください。\n\n例）  \n開発環境 → http://localhost:3000  \n本番環境 → https://xxxxxxxx.vercel.app/ など\n\n## 開発の仕方\n\n1. パッケージのインストール\n\n```bash\nnpm install\n```\n\n2. 開発環境の起動\n\n```bash\nnpm run dev\n```\n\n3. 開発環境へのアクセス  \n   [http://localhost:3000](http://localhost:3000)にアクセス\n\n## 画面プレビューの設定\n\n下書き状態のコンテンツをプレビューするために、microCMS管理画面にて画面プレビューの設定が必要です。\n\nブログAPIの「API設定 \u003e 画面プレビュー」に下記のように設定してください。  \n※`your-domain`部分はデプロイ先のドメインに置き換えてください。（localhost指定でも動作します）\n\n![blog-preview](https://github.com/microcmsio/nextjs-simple-blog-template/assets/4659294/5045ac9e-3699-47b4-8927-4187114d75bd)\n\n設定後はコンテンツ編集画面にて画面プレビューボタンが利用可能になります。\n\n## Vercel へのデプロイ\n\n[Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme)から簡単にデプロイが可能です。\n\nリポジトリを紐付け、環境変数を `Environment Variables` に登録後、デプロイしてみましょう。\n\n![](public/img-vercel-settings.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrocmsio%2Fnextjs-simple-blog-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrocmsio%2Fnextjs-simple-blog-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrocmsio%2Fnextjs-simple-blog-template/lists"}