Skip to content

AbsoluteWebServices/vsf-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSF-Wordpress Integration

Installation


Add your module to <Project>/packages

Setup


Register the integration in the middleware.config.js file.

module.exports = {
  integrations: {
    wordpress: {
      location: "@absolute-web/vsf-wordpress/server",
      configuration: {
        api: process.env.WORDPRESS_API_URL,
      },
    },
  },
};

Add WORDPRESS_API_URL variable to .env file

WORDPRESS_API_URL=<API_URL>

Register the module in the nuxt.config.js file.

buildModules: {
  [
    '@vue-storefront/nuxt',
    {
      useRawSource: {
        dev: [
          '@absolute-web/vsf-wordpress',
        ],
        prod: [
          '@absolute-web/vsf-wordpress',
        ],
      },
    }
  ],
  ['@absolute-web/vsf-wordpress/nuxt'],
},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published