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