A Nuxt.js adapter for the javascript client
Install the package
npm install @getcandy/nuxt-client
Add it to your nuxt.config.js file
modules: [
'@getcandy/nuxt-client'
}]
{
host: "http://store-api.test"
}
If you are using SSR, you will need to transpile the js client
build: {
transpile: [
'@getcandy/js-client'
]
}
The Javascript client will be available in your components as $getcandy