Next.js SSR demo app that shows how to add Appwrite Auth sign ups as leads to Dub.co
NEXT_PUBLIC_APPWRITE_ENDPOINT
: Endpoint of your Appwrite projectNEXT_PUBLIC_APPWRITE_PROJECT
: Project ID of your Appwrite projectNEXT_APPWRITE_KEY
: API key of your Appwrite project withsessions.write
scope enabledNEXT_DUB_API_KEY
: API key of your Dub.co workspace
- Create a Dub.co workspace with the Business plan and an Appwrite Cloud account
- Create a project and API key on Appwrite Cloud and add the endpoint, project ID, and API key to your
.env
file - Create an API key on Dub.co and add to your
.env
file - Enable conversion tracking for your links on Dub.co
- Run your project locally (using
npm run dev
) or deploy to production (don't forget to install dependencies usingnpm install
) - Create a link on Dub.co pointing to your app
- Click on the link, sign up in your app, and verify generated lead on Dub.co