I'm using Sitecore XM Cloud environment, and I setting up my next.js app to connect to Sitecore editors.
I'm currently following this article.
After setting up the configuration file and run jss deploy config
, I got the following error
Error: ENOENT: no such file or directory, mkdir '/App_Config/Include/zzz' at Object.mkdirSync (node:fs:1390:3) at module.exports.makeDirSync (/Users/user/Documents/XMCloud/xxx/xxx.XMC.Websites/node_modules/fs-extra/lib/mkdirs/make-dir.js:23:13) at deploy (/Users/user/Documents/XMCloud/xxx/xxx.XMC.Websites/node_modules/@sitecore-jss/sitecore-jss-dev-tools/dist/cjs/deploy.js:21:28) at Object. (/Users/user/Documents/XMCloud/xxx/xxx.XMC.Websites/node_modules/@sitecore-jss/sitecore-jss-cli/dist/cjs/scripts/deploy.config.js:58:45) at Generator.next () at fulfilled (/Users/user/Documents/XMCloud/xxx/xxx.XMC.Websites/node_modules/@sitecore-jss/sitecore-jss-cli/dist/cjs/scripts/deploy.config.js:5:58) { errno: -2, syscall: 'mkdir', code: 'ENOENT', path: '/App_Config/Include/zzz' }
This is my scjssconfig.json content
{
"sitecore": {
"instancePath": "",
"apiKey": "<api key>",
"deploySecret": "<deploy secret key>",
"deployUrl": "https://xxx.sitecorecloud.io/sitecore/api/jss/import",
"layoutServiceHost": "https://xxx.sitecorecloud.io/"
}
}
I have 2 questions here
- I'm suspecting the error is due to the missing instance path. But I'm using XM Cloud, where can I get the actual path? Do I need to raise Sitecore support to get it?
- The
sitecoreConfigPath
defined in package.json is set to/App_Config/Include/zzz
. It is a must to deploy to this folder path?
jss config deploy
on XM Cloud. Follow this guide instead: doc.sitecore.com/xmc/en/developers/xm-cloud/…