Narnia's Psychedelic Mushrooms

    @scullyio/scully-plugin-logrocket
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.32 • Public • Published

    LogRocket

    • Description: This plugin allows the usage of LogRocket.
    • Type: Render Plugin

    Getting Started

    1. Install the plugin:

    npm install -D @scullyio/scully-plugin-logrocket

    2. Use the plugin:

    In the application's scully.your-app.config.file:

    1. Configure the plugin:

    The plugin's configuration receives an object like this {app: string, id: string} where the app and id are provided in the Script Tag window.LogRocket.init('app/id') provided by LogRocket.

    1. Make a default post render array and add the plugin to it.

    2. Set the default post renders in Scully config.

    e.g.

    // ./scully.your-app.config.ts
    
    import { setPluginConfig, ScullyConfig } from '@scullyio/scully';
    import { LogRocket } from '@scullyio/plugins/logrocket';
    
    const defaultPostRenderers = [];
    
    setPluginConfig(LogRocket, { app: 'your-app', id: 'your-id' });
    defaultPostRenderers.push(LogRocket);
    
    export const config: ScullyConfig = {
      defaultPostRenderers,
      routes: {
        '/': {
          type: 'contentFolder',
          postRenderers: [...defaultPostRenderers],
        },
      },
    };

    Install

    npm i @scullyio/scully-plugin-logrocket

    DownloadsWeekly Downloads

    447

    Version

    2.1.32

    License

    MIT

    Unpacked Size

    4.73 kB

    Total Files

    8

    Last publish

    Collaborators

    • aaronfrost
    • jorgeucano
    • sanderelias
    • villanuevand