How-to guides
Goal-oriented recipes for specific tasks, assuming a working Druxt site.
How-to guides are goal-oriented: recipes for a task you already have, not lessons. They assume you already have a working Druxt site; if you don't, start with the Getting started tutorial.
Guides
- Prepare the Drupal backend: modules, permissions and JSON:API settings for a Druxt-ready site.
- Configure CORS in Drupal: let the browser talk to the backend directly.
- Serve content in multiple languages: fetch and render translated content.
- Proxy the Drupal backend through Nuxt: prevent CORS issues.
- Theme Druxt components: customize output with wrappers and slots.
- Browse and develop components in Storybook: zero-config stories with live data.
- Debug Druxt with the Vue Devtools: inspect connections and suggestions.
- Use the Druxt client directly: fetch resources without components.
- Use Druxt in a Node application: run the client outside Nuxt.
- Explore the example apps: four complete reference implementations.
- Deploy a static site: the worked Netlify example, from local proof to rebuild hooks.
- Deploy a server-rendered site: the node service behind nginx, and the hybrid with a server fallback.
- Authenticate users with OAuth: the full Simple OAuth setup from scratch, both sides.
- Environment variables: every variable a build reads, and the build-time vs runtime trap.
- Troubleshoot common issues: quick answers to the errors and gotchas that come up most often.
- Contributing: set up a development environment and submit changes.
For step-by-step lessons, see Tutorials. For the reasoning behind the system, see Concepts.