/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/deploymentid-not-a-string.mdx
33 строки
664 B
Brooke
[prebuilt-skew-protection] feat: adding in automatic deploymentId (#88958)
27 янв 2026, 18:50
Не верифицирован
27 янв 2026, 18:50
1cbd83b
Код
Авторство
О чём код?
--- title: '`deploymentId` must be a string' --- ## Why This Error Occurred The `deploymentId` option in your `next.config.js` must be a string value. ## Possible Ways to Fix It Ensure your `deploymentId` is a string: ```js // ✅ 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 use `NEXT_DEPLOYMENT_ID` environment variable if set)