app.config.yaml 파일에 대한 설명 및 사용 app-config-yaml
이 파일은 응용 프로그램의 구성을 결정합니다.
이 비디오는 누구의 것입니까?
- Adobe App Builder 경험이 제한된 Adobe Commerce을 처음 사용하는 개발자로서 샘플 애플리케이션의
app.config.yaml
에 대해 학습하고 있습니다.
비디오 콘텐츠
app.config.yaml
파일이 논의되었습니다.- 다른
.js
개 파일에 대한 정의 연결 방법
코드 샘플
# Specify your secrets here
# This file must not be committed to source control
## Adobe I/O Runtime credentials
AIO_runtime_auth=abcd1234-aaa-bbb-ccc-12345:Abcdd12345asdfadsfadsfee2323232323232
AIO_runtime_namespace=12345-someworkspace-stage
AIO_runtime_apihost=https://adobeioruntime.net
## Adobe I/O Console service account credentials (JWT) Api Key
SERVICE_API_KEY=
# You can also include commerce OAuth credentials, our sample module will use the following example credentials:
#COMMERCE_BASE_URL=https://somecommercewebsite.com/
#COMMERCE_CONSUMER_KEY=abcebdme5bvafnemk0mdeeiyfq123
#COMMERCE_CONSUMER_SECRET=ffff86sqws3pss5hhuofiqgq4t04rrr11
#COMMERCE_ACCESS_TOKEN=gdddfccronj098r4m04zyq773s5o64
#COMMERCE_ACCESS_TOKEN_SECRET=ggg7nb19jhr5gi9jzfan9ggzipe8yrus
actions/commerce.index.js
파일의 샘플 모듈에서 사용되는 이러한 정적 값을 볼 수 있습니다
const oauth = getCommerceOauthClient(
{
url: params.COMMERCE_BASE_URL,
consumerKey: params.COMMERCE_CONSUMER_KEY,
consumerSecret: params.COMMERCE_CONSUMER_SECRET,
accessToken: params.COMMERCE_ACCESS_TOKEN,
accessTokenSecret: params.COMMERCE_ACCESS_TOKEN_SECRET
},
logger
)
App Builder - 첫 번째 앱 관련 페이지 작성
recommendation-more-help
3a5f7e19-f383-4af8-8983-d01154c1402f