Skip to content

Commit fe6de6d

Browse files
committed
chore: update netlify.toml
1 parent 4c0a8e0 commit fe6de6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

netlify.toml

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
# Environment variable overriden for deploy-preview's
5151
# Deploy preview's are generated by pull/merge requests
5252
[context.deploy-preview]
53+
command = "cd functions/take-screenshot && npm i && cd ../../ && NODE_ENV=production npm run generate"
54+
functions = "functions/"
55+
5356
[context.deploy-preview.environment]
5457
API_BASE_URL = "https://api.staging.coronatracker.com"
5558
BASE_URL = "https://staging.coronatracker.com"
@@ -60,6 +63,9 @@
6063
# Branch deployes are applicable for non-master branches
6164
# Such as staging, dev branches
6265
[context.branch-deploy]
66+
command = "cd functions/take-screenshot && npm i && cd ../../ && NODE_ENV=production npm run generate"
67+
functions = "functions/"
68+
6369
[context.branch-deploy.environment]
6470
API_BASE_URL = "https://api.staging.coronatracker.com"
6571
BASE_URL = "https://staging.coronatracker.com"

0 commit comments

Comments
 (0)