Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dpc-sdp/nuxt-ripple-preview

Package Overview
Dependencies
Maintainers
6
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dpc-sdp/nuxt-ripple-preview

Adds support for drupal preview links in Ripple frontend sites

latest
npmnpm
Version
2.0.0
Version published
Maintainers
6
Created
Source

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=

FAQs

Package last updated on 28 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts