kontent-ai / smart-link

Kontent.ai Smart Link SDK can be used to automatically inject smart links to Kontent.ai according to manually specified HTML data attributes on your website. It also lets you connect your website with Web Spotlight (for faster editing and preview of your content).
MIT License
9 stars 4 forks source link

Use environment ID instead of project ID #148

Open jancerman opened 7 months ago

jancerman commented 7 months ago

Motivation

In the product, we're using environment ID as the name of the identifier, but the Smart Link SDK still uses the data-kontent-project-id attribute, which is confusing to users.

Proposed solution

Update the SDK to use data-kontent-environment-id instead because that's what you can get in the product UI.