A plugin for automatically generating link buttons in the sidebar. Intended for preview links but flexible enough to do other stuff too!
Example:
Example:
{ "GLOBAL_PREVIEW_TEXT": "Preview", "GLOBAL_LIVE_TEXT": "Live", "GLOBAL_PREVIEW_BASE_URL": "https://your-domain/api/preview", "GLOBAL_PREVIEW_SECRET": "your-secret", "GLOBAL_LIVE_BASE_URL": "https://your-domain"}
Install all the project dependencies with: yarn install
Add this plugin in development mode to one of your DatoCMS project with: yarn addToProject
Start the local development server with: yarn start
The plugin will be served from <http://localhost:5000/>. Insert this URL as the plugin Entry point URL.
Before publishing this plugin, make sure:
package.json
following the official rules;cover.png
) and a preview GIF (preview.gif
) into the docs
folder.When everything's ready, run: yarn publish