druxt-site
v0.14.3
Published
Out of the box Decoupled Drupal sites with Druxt.
Downloads
129
Maintainers
Readme
DruxtJS Site module
Out of the box Decoupled Drupal sites with Druxt.
Links
- DruxtJS: https://druxtjs.org
- Documentation: https://druxtjs.org/modules/site
- Community Discord server: https://discord.druxtjs.org
Install
$ npm install druxt-site
Usage
- Add module to
nuxt.config.js
module.exports = {
modules: [
'druxt-site'
],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org'
}
}
- Add the
DruxtSite
component to your layout:
<template>
<DruxtSite :theme="theme" />
</template>
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. |