Buckets:
| 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) | |
Xet Storage Details
- Size:
- 664 Bytes
- Xet hash:
- ed873f36cfa41acf6531f099c34aba1195af9738cbbc1ccb2b3459890373a2bf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.