@catladder/pipeline 3.32.1 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/constants.js +1 -1
  2. package/dist/context/getEnvironmentVariables.d.ts +4 -4
  3. package/dist/context/getEnvironmentVariables.js +15 -10
  4. package/dist/defaults/index.js +1 -2
  5. package/dist/tsconfig.tsbuildinfo +1 -1
  6. package/dist/types/config.d.ts +5 -1
  7. package/examples/__snapshots__/automatic-releases.test.ts.snap +0 -3
  8. package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +0 -3
  9. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +0 -3
  10. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +0 -3
  11. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +0 -3
  12. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +0 -3
  13. package/examples/__snapshots__/cloud-run-llama.test.ts.snap +0 -3
  14. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +0 -3
  15. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +0 -3
  16. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +0 -3
  17. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +0 -3
  18. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +0 -3
  19. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +0 -3
  20. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +0 -3
  21. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +0 -3
  22. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +0 -3
  23. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +0 -3
  24. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +0 -3
  25. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +0 -3
  26. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +0 -3
  27. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +0 -3
  28. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +0 -3
  29. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +0 -3
  30. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +0 -3
  31. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +0 -3
  32. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +0 -3
  33. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +0 -3
  34. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +0 -3
  35. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +0 -3
  36. package/examples/__snapshots__/custom-build-job.test.ts.snap +0 -3
  37. package/examples/__snapshots__/custom-deploy.test.ts.snap +0 -3
  38. package/examples/__snapshots__/custom-docker-file.test.ts.snap +0 -3
  39. package/examples/__snapshots__/custom-envs.test.ts.snap +0 -3
  40. package/examples/__snapshots__/custom-sbom-java.test.ts.snap +0 -3
  41. package/examples/__snapshots__/custom-verify-job.test.ts.snap +0 -3
  42. package/examples/__snapshots__/git-submodule.test.ts.snap +0 -3
  43. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +0 -3
  44. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +0 -3
  45. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +0 -3
  46. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +0 -3
  47. package/examples/__snapshots__/local-dot-env.test.ts.snap +0 -3
  48. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +0 -3
  49. package/examples/__snapshots__/modify-generated-files.test.ts.snap +0 -3
  50. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +0 -3
  51. package/examples/__snapshots__/multiline-var.test.ts.snap +0 -3
  52. package/examples/__snapshots__/native-app.test.ts.snap +0 -3
  53. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +0 -3
  54. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +0 -3
  55. package/examples/__snapshots__/override-secrets.test.ts.snap +0 -3
  56. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +0 -3
  57. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +0 -3
  58. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +0 -3
  59. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +0 -3
  60. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +0 -3
  61. package/examples/__snapshots__/workspace-api-www.test.ts.snap +0 -3
  62. package/package.json +1 -1
  63. package/src/context/getEnvironmentVariables.ts +15 -14
  64. package/src/defaults/index.ts +0 -1
  65. package/src/types/config.ts +5 -1
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -202,9 +202,6 @@ before_script:
202
202
  needs: []
203
203
  retry: &a1
204
204
  max: 2
205
- when:
206
- - runner_system_failure
207
- - stuck_or_timeout_failure
208
205
  interruptible: true
209
206
  allow_failure: false
210
207
  'llm 🛑 Stop ⚠️ | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'web 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -186,9 +186,6 @@ before_script:
186
186
  needs: []
187
187
  retry: &a1
188
188
  max: 2
189
- when:
190
- - runner_system_failure
191
- - stuck_or_timeout_failure
192
189
  interruptible: true
193
190
  'api 🔨 docker | dev ':
194
191
  stage: build
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'db1 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -131,9 +131,6 @@ before_script:
131
131
  needs: []
132
132
  retry: &a2
133
133
  max: 2
134
- when:
135
- - runner_system_failure
136
- - stuck_or_timeout_failure
137
134
  interruptible: true
138
135
  allow_failure: true
139
136
  'www 👮 lint | dev ':
@@ -167,9 +167,6 @@ before_script:
167
167
  needs: []
168
168
  retry: &a1
169
169
  max: 2
170
- when:
171
- - runner_system_failure
172
- - stuck_or_timeout_failure
173
170
  interruptible: true
174
171
  'www 🔨 docker | dev ':
175
172
  stage: build
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -139,9 +139,6 @@ before_script:
139
139
  needs: []
140
140
  retry: &a1
141
141
  max: 2
142
- when:
143
- - runner_system_failure
144
- - stuck_or_timeout_failure
145
142
  interruptible: true
146
143
  allow_failure: true
147
144
  'api 👮 lint | dev ':
@@ -169,9 +169,6 @@ before_script:
169
169
  needs: []
170
170
  retry: &a1
171
171
  max: 2
172
- when:
173
- - runner_system_failure
174
- - stuck_or_timeout_failure
175
172
  interruptible: true
176
173
  'app 🔨 docker | dev ':
177
174
  stage: build
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -124,9 +124,6 @@ before_script:
124
124
  needs: []
125
125
  retry: &a1
126
126
  max: 2
127
- when:
128
- - runner_system_failure
129
- - stuck_or_timeout_failure
130
127
  interruptible: true
131
128
  allow_failure: true
132
129
  'app 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'web 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'app1 👮 lint | dev ':
@@ -125,9 +125,6 @@ before_script:
125
125
  needs: []
126
126
  retry: &a1
127
127
  max: 2
128
- when:
129
- - runner_system_failure
130
- - stuck_or_timeout_failure
131
128
  interruptible: true
132
129
  allow_failure: true
133
130
  'app 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'www 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'my-app 👮 lint | dev ':
@@ -120,9 +120,6 @@ before_script:
120
120
  needs: []
121
121
  retry: &a1
122
122
  max: 2
123
- when:
124
- - runner_system_failure
125
- - stuck_or_timeout_failure
126
123
  interruptible: true
127
124
  allow_failure: true
128
125
  'app 👮 lint | dev ':
@@ -120,9 +120,6 @@ before_script:
120
120
  needs: []
121
121
  retry: &a1
122
122
  max: 2
123
- when:
124
- - runner_system_failure
125
- - stuck_or_timeout_failure
126
123
  interruptible: true
127
124
  allow_failure: true
128
125
  'app 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'app1 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  'api 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  '🔸 myWorkspace 👮 lint | dev ':
@@ -123,9 +123,6 @@ before_script:
123
123
  needs: []
124
124
  retry: &a1
125
125
  max: 2
126
- when:
127
- - runner_system_failure
128
- - stuck_or_timeout_failure
129
126
  interruptible: true
130
127
  allow_failure: true
131
128
  '🔸 myWorkspace 👮 lint | dev ':
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "3.32.1",
56
+ "version": "3.34.0",
57
57
  "scripts": {
58
58
  "build:tsc": "yarn tsc",
59
59
  "build": "yarn build:compile && yarn build:inline-variables",
@@ -40,10 +40,10 @@ type BasePredefinedVariables = ReturnType<typeof getBasePredefinedVariables>;
40
40
 
41
41
  // we export so that we have later nice autocomplete
42
42
  export type PredefinedVariables = BasePredefinedVariables & {
43
- HOSTNAME: StringOrBashExpression;
44
- ROOT_URL: StringOrBashExpression;
45
- HOSTNAME_INTERNAL: StringOrBashExpression;
46
- ROOT_URL_INTERNAL: StringOrBashExpression;
43
+ HOSTNAME?: StringOrBashExpression;
44
+ ROOT_URL?: StringOrBashExpression;
45
+ HOSTNAME_INTERNAL?: StringOrBashExpression;
46
+ ROOT_URL_INTERNAL?: StringOrBashExpression;
47
47
  };
48
48
 
49
49
  export const getEnvironmentVariables = async (
@@ -60,22 +60,23 @@ export const getEnvironmentVariables = async (
60
60
  getBasePredefinedVariables(environmentContext);
61
61
 
62
62
  let predefinedVariables: PredefinedVariables & UnspecifiedEnvVars;
63
- let host: StringOrBashExpression;
64
- let url: StringOrBashExpression;
63
+ let host: StringOrBashExpression | null;
64
+ let url: StringOrBashExpression | null;
65
65
 
66
66
  if (envType === "local") {
67
67
  const devLocalConfig: DevLocalEnvConfig = envConfigRaw;
68
- const port = devLocalConfig.port ?? 3000;
69
- host = "localhost:" + port.toString();
70
- url = "http://" + host;
68
+ const port =
69
+ devLocalConfig.port !== false ? (devLocalConfig.port ?? 3000) : null;
70
+ host = port ? "localhost:" + port.toString() : null;
71
+ url = host ? "http://" + host : null;
71
72
  predefinedVariables = {
72
73
  ...basePredefinedVariables,
73
74
  ENV_SHORT: "local",
74
- ROOT_URL: url,
75
- HOSTNAME: host,
76
- HOSTNAME_INTERNAL: host,
77
- ROOT_URL_INTERNAL: "http://" + host,
78
- PORT: port.toString(),
75
+ ...(url ? { ROOT_URL: url } : {}),
76
+ ...(host ? { HOSTNAME: host } : {}),
77
+ ...(host ? { HOSTNAME_INTERNAL: host } : {}),
78
+ ...(host ? { ROOT_URL_INTERNAL: "http://" + host } : {}),
79
+ ...(port ? { PORT: port.toString() } : {}),
79
80
  };
80
81
  } else {
81
82
  const additionalEnvVars = deployConfigRaw
@@ -2,5 +2,4 @@ import type { Retry } from "../types";
2
2
 
3
3
  export const BASE_RETRY: Retry = {
4
4
  max: 2,
5
- when: ["runner_system_failure", "stuck_or_timeout_failure"],
6
5
  };
@@ -95,7 +95,11 @@ export type DefaultEnvConfig = {
95
95
 
96
96
  export type DevLocalEnvConfig = {
97
97
  vars?: EnvVars;
98
- port?: number;
98
+ /**
99
+ * port that is used. If not set, 3000 is used.
100
+ * set false to not set a port at all
101
+ */
102
+ port?: number | false;
99
103
  };
100
104
  type AddOverrideFunction<T> = {
101
105
  [K in keyof T]: