A minimal Next.js starter for building apps inside the Eazo platform. Includes a working example of the Eazo session token flow: the app requests the encrypted user token from the host via postMessage, sends it to a Next.js API route, decrypts it server-side with @eazo/node-sdk, and returns the user profile.
Install dependencies with Bun:
bun installIf dependency installation stalls on this machine during sharp setup, use:
SHARP_IGNORE_GLOBAL_LIBVIPS=1 bun installThen start the development server:
bun devOpen http://localhost:3000 with your browser to see the result.
Copy .env.example to .env and fill in your private key:
cp .env.example .env| Variable | Description |
|---|---|
EAZO_PRIVATE_KEY |
Your Eazo developer private key (hex, 64 chars). Used server-side to decrypt the user session token. |
You can generate a keypair in the Eazo developer settings. Never expose the private key to the browser.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.