Skip to content

Commit

Permalink
chore: Add configuration for OPF
Browse files Browse the repository at this point in the history
  • Loading branch information
Matejk00 authored Oct 18, 2024
1 parent d55674c commit 5f1b9a7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { environment } from '../../environments/environment';

const defaultBaseSite = [
'electronics-spa',
'electronics-spa-standalone',
'electronics',
'electronics-standalone',
'apparel-de',
Expand Down
8 changes: 5 additions & 3 deletions scripts/install/config.default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,19 @@ ADD_OPPS=false
# config.epd-visualization.sh contains default values to use in your config.sh when ADD_EPD_VISUALIZATION is true.
ADD_EPD_VISUALIZATION=false
ADD_S4OM=false
# config.opf.sh contains default values to use in your config.sh when ADD_OPF is true.
ADD_OPF=false
# The base URL and public key values are required for connection to Cloud Commerce Adapter (OPF)
OPF_BASE_URL=
OPF_CLIENT_PUBLIC_KEY=
ADD_CPQ_QUOTE=false
ADD_S4_SERVICE=false
ADD_PRODUCT_MULTI_DIMENSIONAL=false

# The base URL (origin) of the SAP EPD Visualization Fiori launchpad
EPD_VISUALIZATION_BASE_URL=

# The base URL and public key values are required for connection to Cloud Commerce Adapter (OPF)
OPF_BASE_URL=
OPF_CLIENT_PUBLIC_KEY=

#NPM connection info
#NPM_URL must start by 'https://' and end with '/' char
NPM_TOKEN=
Expand Down
13 changes: 13 additions & 0 deletions scripts/install/config.opf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file contains default values to use in your config.sh when @spartacus/opf is being included

ADD_OPF=true

BACKEND_URL="https://api.cp96avkh5f-integrati2-d2-public.model-t.cc.commerce.ondemand.com"
BASE_SITE="electronics-spa-standalone"

# The base URL and public key values are required for connection to Cloud Commerce Adapter (OPF)
OPF_BASE_URL="https://cp96avkh5f-integrati2-d2.opf.commerce.stage.context.cloud.sap/commerce-cloud-adapter-stage/storefront"
OPF_CLIENT_PUBLIC_KEY="k2N3m3TJPLragwia5ZUvS/qkIPVQoy5qjUkOAB6Db+U="

# TODO: Comment out the line below after OPF branch is merged into develop.
BRANCH="epic/opf"

0 comments on commit 5f1b9a7

Please sign in to comment.