© 2024 Software & Consulting
NX computes a unique computation hash before running any cacheable task.
This hash is based on:
🔍 Source Files: Includes all source files of the app and its dependencies.
⚙️ Global Configuration: Considers relevant configuration files.
📦 External Dependency Versions: versions specified in package.json and lock files.
🌐 Runtime Values: Includes environment-specific values like the Node.js version.
🏁 CLI Command Flags: Different flags, different hashes!
If the computation hash is the same, the task reuses the cached output, saving you precious time and resources 💡