
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
nuxtjs-drupal-ce
Advanced tools
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href]  [![codecov][codecov-src]][codecov-href] [![License][license-src]
Connects Nuxt.js with Drupal via the Lupus Custom Elements Renderer
Please refer to https://stack.lupus.digital for more info.
nuxtjs-drupal-ce
dependency to your Nuxt projectyarn add nuxtjs-drupal-ce@alpha # or npm install nuxtjs-drupal-ce@alpha
nuxtjs-drupal-ce
to the modules
section of nuxt.config.js
export default defineNuxtConfig({
modules: [
'nuxtjs-drupal-ce',
],
drupalCe: {
baseURL: 'https://your-drupal.example.com/ce-api',
// more options...
}
})
baseURL
: The Drupal base URL. Defaults to the DRUPAL_BASE_URL
environment variable if provided, otherwise to http://localhost:8888
.
menuEndpoint
: The menu endpoint pattern used for fetching menus. Defaults to 'api/menu_items/$$$NAME$$$' as fitting
to the API provided by the Rest menu items Drupal module.
$$$NAME$$$
is replaced by the menu name being fetched.
addRequestContentFormat
: If specified, the given value is added as _content_format
URL parameter to requests. Disabled by default.
customErrorPages
: By default, error pages provided by Drupal (e.g. 403, 404 page) are shown,
while keeping the right status code. By enabling customErrorPages, the regular Nuxt error
pages are shown instead, such that the pages can be customized with Nuxt. Defaults to false
.
addRequestFormat
: If set to true
, the _format=custom_elements
URL parameter
is added automatically to requests. Defaults to true
.
useLocalizedMenuEndpoint
: If enabled, the menu endpoint will use a language prefix as configured by nuxtjs/i18n module. Defaults to true
.
useProxy
: If set to dev-only
and nuxt is in dev-mode, the module automatically
configures /api
to the Drupal backend via
@nuxtjs/proxy and uses it instead of
the Drupal backend, such that there are no CORS issues. Other values supported are
always
or false.
Note: When using always
the module must be added to the nuxt modules
section instead
of the buildModules
section.
pageErrorHandler
: The default page error handler can be overridden.
menuErrorHandler
: The default menu error handler can be overridden.
addVueCompiler
: This is necessary if you want to render custom elements markup on runtime.
If you need this, you may find a solution in this GitHub issue.
axios
: Options to pass-through to the drupal-ce
axios instance.
npm install
.npm run dev:prepare
to generate type stubs.npm run dev
to start playground in development mode.https://8080-shaal-drupalpod-8m3z0ms7mb6.ws-eu67.gitpod.io/ce-api
https://8080-shaal-drupalpod-8m3z0ms7mb6.ws-eu67.gitpod.io/ce-api
Development sponsored by drunomics hello@drunomics.com
FAQs
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [](https://github.com/drunomics/nuxtjs-drupal-c
The npm package nuxtjs-drupal-ce receives a total of 526 weekly downloads. As such, nuxtjs-drupal-ce popularity was classified as not popular.
We found that nuxtjs-drupal-ce demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.