Skip to content
druxt-site

Site

Out-of-the-box decoupled Drupal sites with DruxtSite, wiring layout, blocks, menus and content together from one Nuxt module.

DruxtJS Site module

CI Known Vulnerabilities codecov npm

Out of the box Decoupled Drupal sites with Druxt.

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.

OptionTypeRequiredDefaultDescription
axiosobjectNo{}Axios instance settings.
baseUrlstringYesnullBase URL for the Drupal installation.
endpointstringNo/jsonapiJSON:API Endpoint of the Drupal installation.

Note: The contents of this file were automatically generated from the packages/site/README.md.