forked from adobe-rnd/aem-commerce-prerender
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.yaml
More file actions
67 lines (67 loc) · 2.36 KB
/
app.config.yaml
File metadata and controls
67 lines (67 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
application:
actions: "actions"
runtimeManifest:
packages:
aem-commerce-ssg:
license: "Apache-2.0"
inputs:
ORG: "hlxsites"
SITE: "aem-boilerplate-commerce-staging"
PRODUCT_PAGE_URL_FORMAT: "/products-ssg/{urlKey}/{sku}"
LOG_LEVEL: "info"
LOG_INGESTOR_ENDPOINT: "https://log-ingestor.aem-storefront.com/api/v1/services/change-detector"
CONTENT_URL: "https://main--aem-boilerplate-commerce-staging--hlxsites.aem.live"
PRODUCTS_TEMPLATE: "https://main--aem-boilerplate-commerce-staging--hlxsites.aem.live/products/default"
STORE_URL: "https://main--aem-boilerplate-commerce-staging--hlxsites.aem.live"
CONFIG_NAME: "config"
actions:
pdp-renderer:
function: "actions/pdp-renderer/index.js"
web: "yes"
runtime: "nodejs:22"
annotations:
final: true
include:
- - "actions/pdp-renderer/templates/*.hbs"
- "templates/"
check-product-changes:
function: "actions/check-product-changes/index.js"
web: "no"
runtime: "nodejs:22"
include:
- - "actions/pdp-renderer/templates/*.hbs"
- "templates/"
limits:
memorySize: 256
timeout: 3600000
inputs:
AEM_ADMIN_AUTH_TOKEN: "${AEM_ADMIN_API_AUTH_TOKEN}"
annotations:
final: true
fetch-all-products:
function: "actions/fetch-all-products/index.js"
web: "yes"
runtime: "nodejs:22"
annotations:
final: true
get-overlay-url:
function: "actions/get-overlay-url/index.js"
runtime: "nodejs:22"
annotations:
final: true
triggers:
productPollerTrigger:
feed: "/whisk.system/alarms/interval"
inputs:
minutes: 5
productScraperTrigger:
feed: "/whisk.system/alarms/interval"
inputs:
minutes: 60
rules:
productPollerRule:
trigger: "productPollerTrigger"
action: "check-product-changes"
productScraperRule:
trigger: "productScraperTrigger"
action: "fetch-all-products"