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
82 lines (82 loc) · 2.71 KB
/
app.config.yaml
File metadata and controls
82 lines (82 loc) · 2.71 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
application:
actions: "actions"
runtimeManifest:
packages:
aem-commerce-ssg:
license: "Apache-2.0"
inputs:
ORG: "${ORG}"
SITE: "${SITE}"
PRODUCT_PAGE_URL_FORMAT: "${PRODUCT_PAGE_URL_FORMAT}"
LOG_LEVEL: "error"
LOG_INGESTOR_ENDPOINT: "https://log-ingestor.aem-storefront.com/api/v1/services/change-detector"
CONTENT_URL: "${CONTENT_URL}"
PRODUCTS_TEMPLATE: "${PRODUCTS_TEMPLATE}"
STORE_URL: "${STORE_URL}"
CONFIG_NAME: "config"
LOCALES: "${LOCALES}"
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_API_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
mark-up-clean-up:
function: "actions/mark-up-clean-up/index.js"
runtime: "nodejs:22"
inputs:
AEM_ADMIN_API_AUTH_TOKEN: "${AEM_ADMIN_API_AUTH_TOKEN}"
annotations:
final: true
# triggers:
# productPollerTrigger:
# feed: "/whisk.system/alarms/interval"
# inputs:
# minutes: 5
# productScraperTrigger:
# feed: "/whisk.system/alarms/interval"
# inputs:
# minutes: 60
# markUpCleanUpTrigger:
# feed: "/whisk.system/alarms/interval"
# inputs:
# minutes: 60
# rules:
# productPollerRule:
# trigger: "productPollerTrigger"
# action: "check-product-changes"
# productScraperRule:
# trigger: "productScraperTrigger"
# action: "fetch-all-products"
# markUpCleanUpRule:
# trigger: "markUpCleanUpTrigger"
# action: "mark-up-clean-up"