Getting Started

Setup Module

Want to know why you need this module? Check out the introduction.

To get started with Nuxt Robots, you need to install the dependency and add it to your Nuxt config.

bash
npx nuxt module add skew-protection
Early Access (v0.x): This module is MIT licensed for all projects to enable broader testing and feedback. Once stable (v1+), Nuxt Skew Protection will require a Nuxt SEO Pro license for commercial use. You can always use v0.x versions without a license.

Basic Configuration

Out of the box the module will provide minimal build chunks preservation and a checkForUpdateStrategy. To get the most out of the module you should configure the following:

  • Notification Component: Notifies users when a new version is available and their chunks are outdated.
  • Persistance Storage: Ensures previous build manifests are stored and accessible for long-lived assets thresholds.

To keep track of the versions, the module uses a cookie to store the user's current build version. This cookies name is __nkpv, see cookie options for full details.

Verifying Installation

Once you build and deploy the module you can check your Nuxt App Manifest file, it's locally at /_nuxt/builds/latest.json. Within it you should find a manifest of previous builds within the configured cache threshold.

Did this page help you?