This repository contains the front-end and back-end source code for the TIDAL Embed Player. The back-end consists of an AWS Lambda function that server-side renders parts of the application. The front-end consists of logic for event handlers and playback logic (via tidal-sdk-web).
Build the project by issuing the pnpm build
command. Mind the environment variables below.
The build commands outputs to the dist folder where the front-end parts are outputted to the dist/client folder and the AWS Lambda code to the dist/server folder. Adjust the getStaticFileLink()
method to where you deploy your front-end resources.
Variable Name | Description |
---|---|
EMBED_API_TOKEN | Required - Your TIDAL API token |
TRACK_JS_TOKEN | Not required - Specify along with TRACK_JS_APPLICATION to include TrackJS |
TRACK_JS_APPLICATION | Not required - Specify along with TRACK_JS_TOKEN to include TrackJS |