A Directus webhook extension that handles the automatic creation of Nuxt pages and types when a new collection is created in Directus.
Calls the Nuxtus /api/directus/collection endpoint when a new collection is created. Calls the Nuxtus /api/directus/field endpoint when fields are created, updated or deleted.
We strongly recommend using Nuxtus Boilerplate if you are starting a new project. This will automatically install this hook with other useful Directus/Nuxt utilities.
For more details visit nuxtus.com or read the documentation
Currently Directus extensions need to be installed manually into your existing Directus project.
To do this:
- Clone this repository
- Build the extension
npm run build
- Place
/dist/index.js
in Directus project/extensions/hooks/nuxtus-hook/
Running vitest
in watch mode gives error "too many symbolic links encountered". Use run instead:
./node_modules/.bin/vitest run