{"repo":"Unleash/unleash-nextjs-sdk","free":true,"listed":false,"github":"https://github.com/Unleash/unleash-nextjs-sdk","clone":"git clone https://github.com/Unleash/unleash-nextjs-sdk.git","description":"Unleash SDK for Next.js","language":"TypeScript","stars":33,"topics":["continuous-delivery","continuous-deployment","javascript","nextjs","node","node-js","sdk","typescript","unleash","vercel"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Unleash Next.js SDK Unleash is a private, secure, and scalable feature management platform built to reduce the risk of releasing new features and accelerate software development. This Next.js SDK is designed to help you integrate with Unleash and evaluate feature flags inside your application. You can use this client with Unleash Enterprise or Unleash Open Source. Setup Installation To install, simply run: There is an ./example project that you can deploy to Vercel or edit in CodeSandbox. Environment variables This package will attempt to load configuration from Next.js Environment variables. When using Unleash client-side , with or getFrontendFlags() configure: - NEXT PUBLIC UNLEASH FRONTEND API URL . URL should end with /api/frontend or /proxy - NEXT PUBLIC UNLEASH FRONTEND API TOKEN client-side API token if you're using the front-end API, or a proxy client key if you're using a proxy - Using Edge is the same as using the frontend API, so you'll need a FRONTEND API TOKEN, and your URL should end with /api/frontend . If using server-side (SSR, SSG, API), using getDefinitions() and evaluateFlags() , set: - UNLEASH SERVER API URL of you instance. URL should end with /api - UNLEASH SERVER API TOKEN Backend API client token Detailed explanation Prefixable Variable Default -------------- ---------------------------- --------------------------------------------------------- NEXT PUBLIC UNLEASH SERVER API URL http://localhost:4242/api NEXT PUBLIC UNLEASH FRONTEND API URL /frontend ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Unleash","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Unleash/unleash-nextjs-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}