druxt-site

Out of the box Decoupled Drupal sites with Druxt.

Usage no npm install needed!

<script type="module">
  import druxtSite from 'https://cdn.skypack.dev/druxt-site';
</script>

README

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.