A simple TargetClient SDK usage in server-side rendering demo, based on the Next.js sample app.
Target offers are prefetched on the server-side and included in the rendered page, thus enabling instant application
of Target offers on the client side, without any additional Target calls initiated by Target client at.js library.
- Install dependencies:
npm i
- Dev build:
npm run dev
- Prod build:
npm run build && npm start