A custom endpoint boilerplate for directus headless CMS.
- Uses a pre-configured rollup so that you can import and bundle commonjs and ES* modules with your custom endpoint.
- dev.rollup.config.js uses rollup-plugin-execute to restart directus to quickly develop and test custom endpoints against a live directus instance.
- restart is configurable in dev.rollup.config.js, you could use a command like
pm2 restart directus
, if you used pm2 to start directus withpm2 start --name directus
- User docker-compose to run your local directus instance, then you can map the extensions directory to the repos with your extensions.
e.g.
container_name: directus volumes: - ./modules/upload/dist:/directus/extensions/modules/upload - ./endpoints:/directus/extensions/endpoints
- Official Directus Docker-Compose File
npm run build
or yarn build
npm run dev
or yarn dev