microCMSをこれから始める方はまずアカウント作成から行います。
公式ドキュメントのアカウント登録から手順に沿ってアカウント登録してください。
次に、サービスの作成とサービスの設定を行ってください。
すべてできたら、サービスドメインとAPIキーをコピーし、.envファイルに張り付けてください。
MICROCMS_API_KEY=APIキー
MICROCMS_SERVICE_DOMAIN=サービスドメイン
BASE_URL=http://localhost:3000
本環境ではNode.js(version18以降)を使う。
ローカル環境にNode.jsが入っていない場合にはインストールする必要がある。
パッケージのインストール。
npm installnpm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
参考:microCMSのコンテンツを更新した時に、WebhookでGitHub Actionsを実行する
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
