Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.54 KB

File metadata and controls

48 lines (30 loc) · 1.54 KB

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.

Getting Started

Install dependencies with Bun:

bun install

If dependency installation stalls on this machine during sharp setup, use:

SHARP_IGNORE_GLOBAL_LIBVIPS=1 bun install

Then start the development server:

bun dev

Open http://localhost:3000 with your browser to see the result.

Environment Variables

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.

Learn More

Deploy on Vercel

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.