A Directus v9 extension (module & endpoints) for initiating a Netlify build from within the Directus app.
The Directus Extension: dwaring87-publish-netlify is a v9 extension for the Directus app. It includes a frontend app module and backend API endpoints that allow users to manage builds and deploys of a Netlify site. The extension is designed to make it easier for admin users to initiate a Netlify build and manage the published deploy directly from within the Directus app.
To install the Directus Extension: dwaring87-publish-netlify, follow these steps:
npm install in the project’s root directory.npm run build.DIRECTUS_EXTENSIONS_PATH environment variable to the path of the Directus extensions directory../config.js to /directus/extensions/endpoints/dwaring87-publish-netlify/config.js./directus-endpoint-publish-netlify/src/index.js to /directus/extensions/endpoints/dwaring87-publish-netlify/index.js./directus-module-publish-netlify/dist/index.js to /directus/extensions/modules/dwaring87-publish-netlify/index.jsThe Directus Extension: dwaring87-publish-netlify is a powerful tool for managing builds and deploys of a Netlify site within the Directus app. It provides a user-friendly interface for initiating builds, keeping track of updates, and managing deployed sites. The installation process involves installing node dependencies, building the app module, and deploying the module and API endpoints to the Directus extensions directory. With advanced configuration options available, the extension can be customized to fit specific needs.