Getting Started

Configuration

wpNuxt: {
  wordpressUrl: 'https://wordpress.wpnuxt.com',
  frontendUrl: 'https://demo.wpnuxt.com',
  composablesPrefix: 'useWP'
  defaultMenuName: 'main',
  enableCache: true,
  downloadSchema: true,
  logLevel: 3
},

wordpressUrl

URL of the WordPress site

There is no default value for this option, so it's always required.

frontendUrl

URL of the Nuxt app

composablesPrefix

defaultMenuName

enableCache

downloadSchema

Downloads the GraphQL schema and store it on disk.

When setting this to false, the module will expect a graphql.schema file to be available.

You could first enable this, commit the schema file and then set downloadSchema to false to avoid have to do graphql introspection on each start of the application. This speeds up the build time of the application.

logLevel


Copyright © 2024 WPNuxt