
ืฉืคื ๐ฎ๐ฑ ืขืืจืืช
ืชืืขืื
ืืชืืื
ืฉืืืืฉ
Add Comments to Your Next.js App
ืืืื ืืกืคืจืืื ืืจืฉืืืช ืฉื Next.js ืขืืืจ FastComments.
ืืืืขื ืืืืื'ืืื ืฉื ืชืืืืืช ืืืื ืืืช, ืฆ'ืื ืืืืงืืจืืช ืืืคืืืงืฆืืืช Next.js ืฉืืื.
ืืืืจ
ืืืืื ืืื 
ืืื ืืจืืืช ืื ืจืืื ืืืจืืื ืคืืขืืื ืืงืืืืช ืืื ื-demo tenant ืืฆืืืืจื, ืฉืืคื ืืช ืืืืืจ ืืืจืฅ:
cd example
npm install
npm run dev
ืืื ืจืืื ืืฉ ื ืชืื ืืฉืื ืชืืช example/app/ ืฉื ืืชื ืืืขืชืืง ืืฉืืจืืช ืืืคืืืงืฆืืืช Next.js ืฉืื.
ืืชืืื ืืืืจื 
// app/page.tsx
import { FastComments } from 'fastcomments-nextjs';
export default function Page() {
return <FastComments tenantId="demo" />;
}
ืืืืฃ ืืช "demo" ื-tenant ID ืฉื FastComments ืฉืื. ืืงืืืคืื ื ืื ืืืจ ืืฆืืืจื 'use client', ืืื ืชืืื ืืืฆืื ืืืชื ืืชืื ืงืืืคืื ื ืืช ืฉืจืช.
ืจืืืืื 
| ืจืืื | ืชืืืืจ |
|---|---|
FastComments |
ืืืืื'ื ืชืืืืืช ืขื ืชืืืืืช ืืฉื ื, ืืฆืืขืืช ืืขืื |
FastCommentsCommentCount |
ืืฆืื ืืช ืืกืคืจ ืืชืืืืืช ืืืฃ |
FastCommentsImageChat |
ืืขืจืืช ืขื ืชืืื ืืช |
FastCommentsLiveChat |
ืืืืื'ื ืฆ'ืื ืืืื ืืืช |
FastCommentsCollabChat |
ืชืืืืืช ืฉืืชืืคืืืช ืืชืื ืืืงืกื |
FastCommentsReviewsSummary |
ืกืืืื ืืืงืืจืืช ืขื ืืืจืื ืืืืืืื |
FastCommentsUserActivityFeed |
ืคืื ืคืขืืืืช ืืฉืชืืฉ |
ืื ืืจืืืืื ืืืืฆืืื ืืฉืืจืฉ ืืืืืื:
import {
FastComments,
FastCommentsLiveChat,
FastCommentsReviewsSummary,
} from 'fastcomments-nextjs';
ืคืจืืกืืช ื-Vercel 
ืื ืืชืงื ืช ืืช FastComments ืืืืฆืขืืช ืืืื ืืืจืฆืื ืฉื Vercel Marketplace, ืืืื ื-tenant ืฉืื ืืืื ืืืฉืชื ื ืกืืืื FASTCOMMENTS_TENANT_ID. ืืื ืืงืจืื ืืืชื ืืฆื ืืืงืื, ืืฉืืฃ ืืืชื ืืืืฆืขืืช next.config.js ืื ืืืกืฃ ืื ืืช ืืงืืืืืช NEXT_PUBLIC_:
<FastComments tenantId={process.env.NEXT_PUBLIC_FASTCOMMENTS_TENANT_ID!} />
ืคืจืืืงื ืืืืืื 
ืืื ืขืืื ืืืื ืืชืืงืืืช example/:
cd example && npm install && npm run dev
ืืฆื ืชืืืืงื 
ืืจืืืืื ืืืื ืื ืขืืืคืืช ืกืืื ืจืืืื ื-VanillaJS ืืืืืชืืื ืฉืื ื. ืื ืื ื ืืืืืื ืืขืืื ืืืืืืืืช ืืช ืืจืืืืื ืืืื (ืืชืงื ืืืืื, ืืืืกืืฃ ืชืืื ืืช) ืืืื ืืคืจืกื ืืช ืืกืคืจืืื ืืื, ืื ืฉืืืชืื ืฉืืื ืื ืชืคืืจืกื ืืื ืื โ ืืื ืื ืื ืืืืจ ืฉ-FastComments ืืื ื ืืคืืชืื ืคืขืื! ืืชื ืืืืื ืื ืืืืืง ืืช ืืืืื ืฉืื ื ืืื ืืืชืขืืื. ืฉืื ืืืื ืืืืชืืื ื-API ืื ืชืืื ืืช ืฉืืฉืืจื ืชืืืืืช ืืืืืจ ืืขืืื ืื ืืืฉืืื ืืกืคืจืืืช ืืืืื ืืชืืชืื ื ืืื ืืขืืืช ืืจืกื ืืกืคืจืืื ืื.
ืฆืจืืืื ืขืืจื?
ืื ืืชื ื ืชืงืืื ืืืขืืืช ืื ืืฉ ืืื ืฉืืืืช ืืืื ื-Next.js Library, ืื ื:
ืชืจืืืืช
ืชืจืืืืช ืืชืงืืืืช ืืืจืื! ืื ื ืืงืจื ื-ืืืืจ GitHub ืืงืืืช ืื ืืืืช ืืชืจืืื.