Spark | Guides | Installing the NPM module

James Barrow
James Barrow
  • Updated

1. Check Version Compatibility and Package Details

Visit the NPM package page to review version compatibility, installation instructions, and documentation:

https://www.npmjs.com/package/@dataweavers/spark-nextjs

2. Install the Spark Module

In a PowerShell or terminal, navigate to your Next.js application root and run:

npm install @dataweavers/spark-nextjs

3. Configure the Edge Secret

Set this environment variable in your Next.js application:

Variable name: SPARK_REGENERATION_SECRET

Variable value: Copy the Edge Secret field from the Spark application.

4. Configure Log Level (Optional)

Set the Spark log level to control logging verbosity:

Variable name: SPARK_LOG_LEVEL

Variable value: DEBUG | INFO | WARN | ERROR | SILENT

Default: INFO

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request