I updated the next version to 14 and I tried to display the output in help folder. But I received the below error when running the npm build “Unable to find build-manifest. Make sure to build the project using next build
command”.
The next.config.js is provided below:
const withMarkdoc = require('@markdoc/next.js');
module.exports = withMarkdoc()({
trailingSlash: true,
distDir:'help',
pageExtensions: ['js', 'md', 'mdoc'],
images: {
unoptimized: true,
},
});
The next-sitemap.config.js is provided below:
module.exports = {
siteUrl: 'https://help.com/',
output: 'help',
sourceDir:'help',
additionalPaths: async (config) => {
return [{ loc: 'https://help.com/sdk/dotnet/class-reference/Help.Api.html',
changefreq: 'daily',
priority: 0.7,
lastmod: new Date().toISOString(),}]
},
generateIndexSitemap:false,
}
The package.json file is provided below:
{
"name": "help-doc-builder",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "next lint",
"deploy": "gulp deploy"
},
"dependencies": {
"@markdoc/markdoc": "^0.1.12",
"@markdoc/next.js": "^0.1.8",
"aws-cloudfront-invalidate": "^0.1.3",
"concurrent-transform": "^1.0.0",
"express": "^4.18.2",
"fs": "^0.0.1-security",
"gulp": "^4.0.2",
"gulp-awspublish": "^4.0.0",
"gulp-awspublish-router": "0.2.0",
"gulp-cloudfront-invalidate-aws-publish": "^1.0.0",
"gulp-rename": "^1.4.0",
"helmet": "^7.0.0",
"next": "^14.2.3",
"next-sitemap": "^4.2.3",
"prism-json-fold": "^1.0.1",
"prismjs": "^1.29.0",
"react": "18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "18.2.0",
"shelljs": "^0.8.3"
},
"devDependencies": {
"eslint": "8.24.0",
"eslint-config-next": "12.3.1"
}
}