app.config.yaml檔案的說明和使用方式 app-config-yaml

此檔案決定應用程式的設定。

這部影片是給誰看的?

  • 剛開始接觸Adobe Commerce且在AdobeApp Builder方面經驗有限的開發人員,他們在範例應用程式中瞭解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