Using Composable Storefront with SAP Commerce Cloud in the Public Cloud

SAP Commerce Cloud hosting service is used for both building and hosting JavaScript storefronts. As of late August 2023, the hosting service can build composable storefront 5.x, 6.x, and 2211.x (or later) using the libraries that are stored on the Repo-Based Shipment Channel (RBSC).

Context

The latest steps for setting up composable storefront with SAP Commerce Cloud are now provided in Add Applications to JavaScript Storefronts.

Manually Uploading Composable Storefront to SAP Commerce Cloud in the Public Cloud

SAP Commerce Cloud hosting service is used for both building and hosting JavaScript storefronts. However, it is also possible to build your composable storefront app locally, and upload the compiled application to the SAP Commerce Cloud hosting service, as follows:

Prerequisites

You must first create a composable storefront app on your local machine. For more information, see Building the Composable Storefront From 6.0 Libraries.

Procedure

  1. In your composable storefront project, run the following command:
    npm run build

    A new dist folder is created in the root directory of your project.

  2. Commit the dist folder to your code repository for SAP Commerce Cloud.

    For more information, see Add Applications to JavaScript Storefronts.