druxt-site

0.14.3 • Public • Published

DruxtJS Site module

CircleCI Known Vulnerabilities codecov npm

Out of the box Decoupled Drupal sites with Druxt.

Links

Install

$ npm install druxt-site

Usage

  1. Add module to nuxt.config.js
module.exports = {
  modules: [
    'druxt-site'
  ],
  druxt: {
    baseUrl: 'https://demo-api.druxtjs.org'
  }
}
  1. 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.

Package Sidebar

Install

npm i druxt-site

Homepage

druxtjs.org

Weekly Downloads

28

Version

0.14.3

License

MIT

Unpacked Size

18.8 kB

Total Files

8

Last publish

Collaborators

  • deciphered