| title | `deploymentId` must be a string |
|---|
The deploymentId option in your next.config.js must be a string value.
Ensure your deploymentId is a string:
// ✅ Correct
module.exports = {
deploymentId: 'my-deployment-123',
}
// ✅ Using environment variables
module.exports = {
deploymentId: process.env.GIT_HASH || 'default-id',
}
// ❌ Incorrect
module.exports = {
deploymentId: 12345, // Must be a string, not a number
}The deploymentId can be:
- A string:
deploymentId: 'my-deployment-123' undefined(will useNEXT_DEPLOYMENT_IDenvironment variable if set)