Preview Tutorial
In the case of Node.js
, the UI to open the preview screen must be provided by the user.
Here is a guide to an example preview setup, assuming React is used for the front end.
Node.JS
- First, open the Preview tab in Vell, press
Add New
and selectCustom
. - Select the added items, and in
Headers
, add a header whose key isAPI-KEY
and whose value is the aboveSEACRET_KEY
. InEndpoint
, enter the endpoint for processing the abovegetDraft
. - The Node.js side is accessed from Vell with the following URL to retrieve data.Enter the
https://your-service.com
part in theEndpoint
field.
React
- Open the Preview tab in Vell and select the item to configure
Node.js
. - Copy the value of
Preview ID
and set it toPREVIEW_ID
above. - When the content link is opened, the Vell preview screen opens, accesses the Node.js side, acquires the data, and displays it on the screen.