Skip to content
nuxt-ripple-preview / 2.17.4-next.e7d1eda59.3

nuxt-ripple-preview 2.17.4-next.e7d1eda59.3

Install from the command line:
Learn more about npm packages
$ npm install @dpc-sdp/nuxt-ripple-preview@2.17.4-next.e7d1eda59.3
Install via package.json:
"@dpc-sdp/nuxt-ripple-preview": "2.17.4-next.e7d1eda59.3"

About this version

Nuxt Ripple Preview

Ths packages adds support for drupal preview links within Ripple sites.

Installation

To use this package in your Nuxt project first install it with npm

npm install @dpc-sdp/nuxt-ripple-preview

Usage

Add the installed package in your sites nuxt.config.js file under the extends property, this includes the package as a Nuxt Layer.

export default defineNuxtConfig({
  extends: [
    '@dpc-sdp/nuxt-ripple-preview'
  ]
})

Configuration

A client ID and cookie sign secret are required to use the preview functionality. These values are provided during site provisioning (contact SDP ops team).

Runtime variables can be set in your sites nuxt.config.js file under the tide property.

export default defineNuxtConfig({
  runtimeConfig: {
    public: {
      tide: {
        preview: {
          clientId: '',
          cookieSignSecret: ''
        }
      }
    }
  }
})

They can also be set as uppercase environment variables.

# OAuth client ID
NUXT_TIDE_PREVIEW_CLIENT_ID=
# OAuth client secret
NUXT_TIDE_PREVIEW_COOKIE_SIGN_SECRET=

Details


Assets

  • nuxt-ripple-preview-2.17.4-next.e7d1eda59.3.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0