1. Check Version Compatibility and Package Details
Visit the NPM package page for Dataweavers Spark to review version compatibility, installation instructions, and documentation.
2. Install the Spark Module
In a PowerShell or terminal, navigate to your Next.js application root and run:
npm install @dataweavers/spark-nextjs3. 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