Skip to content

yugo55/MMT

 
 

Repository files navigation

MMT HP

Next.js 公式ドキュメント

https://nextjs.org/docs

microCMSのセットアップ

microCMSをこれから始める方はまずアカウント作成から行います。
公式ドキュメントのアカウント登録から手順に沿ってアカウント登録してください。
次に、サービスの作成とサービスの設定を行ってください。
すべてできたら、サービスドメインとAPIキーをコピーし、.envファイルに張り付けてください。

MICROCMS_API_KEY=APIキー
MICROCMS_SERVICE_DOMAIN=サービスドメイン
BASE_URL=http://localhost:3000

Getting Started

Node.jsをインストール

本環境ではNode.js(version18以降)を使う。
ローカル環境にNode.jsが入っていない場合にはインストールする必要がある。

セットアップ

パッケージのインストール。

npm install

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

webhookを通す

参考:microCMSのコンテンツを更新した時に、WebhookでGitHub Actionsを実行する

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 52.4%
  • CSS 41.1%
  • TypeScript 4.0%
  • JavaScript 2.5%