Druxt blocks
Provides Drupal blocks and region components to be used within a Druxt (DRUpal nuXT) project.
Install
$ npm install druxt-blocks
Usage
Add module to nuxt.config.js
module.exports = {
modules: [
...
'druxt-blocks',
'druxt-router'
],
druxt: {
baseUrl: 'https://example.com'
}
}
Options
Base Druxt options
These options are available to all Druxt modules.
Option | Type | Required | Default | Description |
---|
axios | object | No | {} | Axios instance settings. |
baseUrl | string | Yes | null | Base URL for the Drupal installation. |
endpoint | string | No | /jsonapi | JSON:API Endpoint of the Drupal installation. |