Next.js (Pages Router)
For projects using the older Pages Router (pages/ directory), the script goes in either pages/_document.tsx or pages/_app.tsx.
Install#
No package install needed. Replace YOUR_PROJECT_ID with the value from /v1/projects.
Add the script#
In pages/_app.tsx, use Next's <Script> component:
Add the container#
Drop the container <div> wherever the wall of love should render: