# Installation

IMPORTANT: Accurate for versions < 0.2.0.

Install module into your app.

npm install @vsf-enterprise/contentstack --save

or

yarn add @vsf-enterprise/contentstack

# Setup


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

modules: [
  [
    '@vsf-enterprise/contentstack/nuxt',
    {
      key: 'CONTENT_DELIVERY_KEY',
      token: 'CONTENT_DELIVERY_TOKEN',
      env: 'CONTENT_ENV',
      region: 'REGION_KEY', // (set 'EU' for European data center, remove for US)
    },
  ],
]

You will also need to register Contentstack module as a rawSource in the @vue-storefront/nuxt module. Like that.

['@vue-storefront/nuxt', {
  ...
  useRawSource: {
    dev: ['@vsf-enterprise/contentstack'],
    prod: ['@vsf-enterprise/contentstack'],
  }
}],