LoginSignup
3
1

More than 3 years have passed since last update.

Contentfulのコンテンツ更新時にAmplify Console(Gatsuby)を自動ビルドする(WebHook)

Last updated at Posted at 2020-10-18

AmplifyでGatsuby+Contentfulを利用する際のビルド設定です。
Contenfulでは、ブログやメニュー、カテゴリなどを管理する想定です。

Amplify側(Amplify Console)

Amplify Consoleに移動して、ビルドの設定 - 「Create webhook」 でwebhookを作成します。

スクリーンショット 2020-10-18 13.42.43 (1).jpg

Contentful

Settings - Webhooks - 「Add Webhook」 でwebhookを作成し、
Amplify ConsoleからコピーしたURLを貼り付けて、Content Typeを "application/json" に設定します。

スクリーンショット 2020-10-18 13.51.35.jpg

スクリーンショット 2020-10-18 13.47.38.jpg

コンテンツを更改すると、Webhookを経由して、Amplify Consoleのビルドが走ります。

スクリーンショット 2020-10-18 13.55.33.png

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1