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
Ths packages adds support for drupal preview links within Ripple sites.
To use this package in your Nuxt project first install it with npm
npm install @dpc-sdp/nuxt-ripple-preview
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'
]
})
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
- nuxt-ripple-preview
- dpc-sdp
- 6 days ago
- Apache-2.0
- 6 dependencies
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