Druxt router
Druxt (DRUpal nuXT) is a Nuxt module that provides an easy connection between a Nuxt frontend and Drupal backend.
Install
$ npm install druxt-router
Usage
Add module to nuxt.config.js
module.exports = {
modules: [
...
'druxt-router'
],
druxt: {
baseUrl: 'https://example.com'
}
}
Ensure you have activated the Nuxt Vuex store.
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. |
Druxt Router options
These options are specific to this module.
Option | Type | Required | Default | Description |
---|
router.render | string | No | div | Component to render entity routes. |