feat: add sponsored article support - #315
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Deploying next-blog-app with
|
| Latest commit: |
2e9d49a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4c1685cb.next-blog-app-8ai.pages.dev |
| Branch Preview URL: | https://feat-sponsored-articles.next-blog-app-8ai.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
microCMSの記事をスポンサー記事として明示し、広告主に関連するリンクへ適切なリンク属性を付与できるようにします。
変更内容
isSponsored、sponsorName、sponsorUrlを記事型へ追加PRバッジを表示rel="sponsored"を付与rel値と無関係な外部リンクを維持microCMS設定
blogAPIへ次のフィールドを追加してください。isSponsored: 真偽値、初期値falsesponsorName: テキストsponsorUrl: URL検証
pnpm lintpnpm typecheckpnpm test:run(221件成功)pnpm build:e2epnpm test:e2e(PC・モバイル計38件成功)