The current @dropbox/sign Node SDK uses node modules which cannot run on client components.
Due to the nature of Next.js, this can cause errors during compile time.
This is a Next.js basic app using the @dropbox/sign Node SDK, as well as the hellosign-embedded client-side library.
This example app relies on the use of 'use server' directive to be able to perform Server Actions and Mutations from client components.
npm installCreate a new file named .env.local in the root of the project and add your Dropbox Sign API_KEY and CLIENT_ID.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
- This is a Next.js project bootstrapped with
create-next-app. - This project uses
next/fontto automatically optimize and load Roboto, a custom Google Font. - Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Next.js GitHub repository - your feedback and contributions are welcome!