Remove code-first artifacts from a JSS app
Clean up your JSS app after switching to Sitecore-first development
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
/data
to remove disconnected route data. -
Delete the directory
/sitecore/definitions
to remove the manifest definitions. -
Delete the directory
/sitecore/pipelines
to 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
start
script to remove the option of starting the local development server in disconnected mode. -
Optionally, rename
start:connected
tostart
, 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.