Remove code-first artifacts from a JSS app
After switching to Sitecore-first development, to avoid clutter and prevent accidental deployment, we recommend that you remove code-first artifacts from your JSS app.
To remove code-first artifacts:
-
Delete the directory
/datato remove disconnected route data. -
Delete the directory
/sitecore/definitionsto remove the manifest definitions. -
Delete the directory
/sitecore/pipelinesto remove manifest pipeline patches. -
Delete
/scripts/disconnected-mode-proxy.js, because it is not used outside Sitecore-first development. -
In the file
package.json:-
Remove the
startscript to remove the option of starting the local development server in disconnected mode. -
Optionally, rename
start:connectedtostart, for a shorter command. -
Remove the script
bootstrap:disconnected.
-
Extensively customized apps using different techniques than the standard sample apps might require additional steps depending on their customizations.