@@ -250,134 +250,134 @@ export default Alchemy.Stack(
250250 Effect . gen ( function * ( ) {
251251 const stack = yield * Stack ;
252252 const configuration = yield * Config . all ( {
253- environment : Config . string ( "DX_DEPLOYMENT_ENVIRONMENT" ) ,
254- deploymentTarget : Config . string ( "DX_DEPLOYMENT_TARGET" ) ,
255- deploymentLabel : Config . string ( "DX_DEPLOYMENT_LABEL" ) ,
253+ environment : Config . String ( "DX_DEPLOYMENT_ENVIRONMENT" ) ,
254+ deploymentTarget : Config . String ( "DX_DEPLOYMENT_TARGET" ) ,
255+ deploymentLabel : Config . String ( "DX_DEPLOYMENT_LABEL" ) ,
256256 deploymentName : Config . option (
257- Config . nonEmptyString ( "DX_DEPLOYMENT_NAME" ) ,
257+ Config . NonEmptyString ( "DX_DEPLOYMENT_NAME" ) ,
258258 ) ,
259- adminEmail : Config . option ( Config . nonEmptyString ( "DX_ADMIN_EMAIL" ) ) ,
260- adminPassword : Config . option ( Config . redacted ( "DX_ADMIN_PASSWORD" ) ) ,
259+ adminEmail : Config . option ( Config . NonEmptyString ( "DX_ADMIN_EMAIL" ) ) ,
260+ adminPassword : Config . option ( Config . Redacted ( "DX_ADMIN_PASSWORD" ) ) ,
261261 adminPasswordReset : Config . withDefault (
262- Config . boolean ( "DX_ADMIN_PASSWORD_RESET" ) ,
262+ Config . Boolean ( "DX_ADMIN_PASSWORD_RESET" ) ,
263263 false ,
264264 ) ,
265265 integrations : Config . withDefault (
266- Config . string ( "DX_DEPLOYMENT_INTEGRATIONS" ) ,
266+ Config . String ( "DX_DEPLOYMENT_INTEGRATIONS" ) ,
267267 "" ,
268268 ) ,
269- origin : Config . string ( "DX_DEPLOYMENT_ORIGIN" ) ,
269+ origin : Config . String ( "DX_DEPLOYMENT_ORIGIN" ) ,
270270 authEmailFrom : Config . option (
271- Config . nonEmptyString ( "DX_DEPLOYMENT_AUTH_EMAIL_FROM" ) ,
271+ Config . NonEmptyString ( "DX_DEPLOYMENT_AUTH_EMAIL_FROM" ) ,
272272 ) ,
273- revision : Config . string ( "DX_DEPLOYMENT_REVISION" ) ,
274- workerName : Config . string ( "DX_DEPLOYMENT_WORKER_NAME" ) ,
275- databaseName : Config . string ( "DX_DEPLOYMENT_DATABASE_NAME" ) ,
276- bucketName : Config . string ( "DX_DEPLOYMENT_BUCKET_NAME" ) ,
277- credentialsFile : Config . string ( "DX_DEPLOYMENT_CREDENTIALS_FILE" ) ,
273+ revision : Config . String ( "DX_DEPLOYMENT_REVISION" ) ,
274+ workerName : Config . String ( "DX_DEPLOYMENT_WORKER_NAME" ) ,
275+ databaseName : Config . String ( "DX_DEPLOYMENT_DATABASE_NAME" ) ,
276+ bucketName : Config . String ( "DX_DEPLOYMENT_BUCKET_NAME" ) ,
277+ credentialsFile : Config . String ( "DX_DEPLOYMENT_CREDENTIALS_FILE" ) ,
278278 bootstrapRepository : Config . withDefault (
279- Config . string ( "DX_DEPLOYMENT_BOOTSTRAP_REPOSITORY" ) ,
279+ Config . String ( "DX_DEPLOYMENT_BOOTSTRAP_REPOSITORY" ) ,
280280 "" ,
281281 ) ,
282- packageDirectory : Config . string ( "DX_DEPLOYMENT_PACKAGE_DIR" ) ,
283- e2bTemplate : Config . string ( "DX_DEPLOYMENT_E2B_TEMPLATE" ) ,
284- e2bTemplateBuildId : Config . string ( "DX_DEPLOYMENT_E2B_TEMPLATE_BUILD_ID" ) ,
285- dxdChecksum : Config . string ( "DX_DEPLOYMENT_DXD_CHECKSUM" ) ,
286- dxdReleaseUrl : Config . string ( "DX_DEPLOYMENT_DXD_RELEASE_URL" ) ,
282+ packageDirectory : Config . String ( "DX_DEPLOYMENT_PACKAGE_DIR" ) ,
283+ e2bTemplate : Config . String ( "DX_DEPLOYMENT_E2B_TEMPLATE" ) ,
284+ e2bTemplateBuildId : Config . String ( "DX_DEPLOYMENT_E2B_TEMPLATE_BUILD_ID" ) ,
285+ dxdChecksum : Config . String ( "DX_DEPLOYMENT_DXD_CHECKSUM" ) ,
286+ dxdReleaseUrl : Config . String ( "DX_DEPLOYMENT_DXD_RELEASE_URL" ) ,
287287 sourceShallowClone : Config . withDefault (
288- Config . boolean ( "DX_DEPLOYMENT_SOURCE_SHALLOW_CLONE" ) ,
288+ Config . Boolean ( "DX_DEPLOYMENT_SOURCE_SHALLOW_CLONE" ) ,
289289 true ,
290290 ) ,
291291 workspaceInactivityMs : Config . option (
292- Config . number ( "DX_DEPLOYMENT_WORKSPACE_INACTIVITY_MS" ) ,
292+ Config . Number ( "DX_DEPLOYMENT_WORKSPACE_INACTIVITY_MS" ) ,
293293 ) ,
294294 turnstileTestKeys : Config . withDefault (
295- Config . boolean ( "DX_DEPLOYMENT_TURNSTILE_TEST_KEYS" ) ,
295+ Config . Boolean ( "DX_DEPLOYMENT_TURNSTILE_TEST_KEYS" ) ,
296296 false ,
297297 ) ,
298298 // Self-host only: whether magic link needs a Turnstile widget. Hosted
299299 // targets derive it from their sender.
300- turnstile : Config . option ( Config . boolean ( "DX_DEPLOYMENT_TURNSTILE" ) ) ,
301- e2bApiKey : Config . option ( Config . redacted ( "E2B_API_KEY" ) ) ,
302- githubApp : Config . option ( Config . redacted ( "DX_INTEGRATION_GITHUB_APP" ) ) ,
303- sarvamApiKey : Config . option ( Config . redacted ( "SARVAM_API_KEY" ) ) ,
300+ turnstile : Config . option ( Config . Boolean ( "DX_DEPLOYMENT_TURNSTILE" ) ) ,
301+ e2bApiKey : Config . option ( Config . Redacted ( "E2B_API_KEY" ) ) ,
302+ githubApp : Config . option ( Config . Redacted ( "DX_INTEGRATION_GITHUB_APP" ) ) ,
303+ sarvamApiKey : Config . option ( Config . Redacted ( "SARVAM_API_KEY" ) ) ,
304304 // How attachment bytes move: "token" deployments mint a bucket-scoped
305305 // R2 token Core signs direct URLs with; "core" deployments (Alchemy
306306 // OAuth, which cannot create tokens) carry the bytes through Core.
307307 attachmentSigning : Config . withDefault (
308- Config . literals (
308+ Config . Literals (
309309 [ "token" , "core" ] as const ,
310310 "DX_DEPLOYMENT_ATTACHMENT_SIGNING" ,
311311 ) ,
312312 "token" ,
313313 ) ,
314314 cloudflareAccountId : Config . option (
315- Config . nonEmptyString ( "CLOUDFLARE_ACCOUNT_ID" ) ,
315+ Config . NonEmptyString ( "CLOUDFLARE_ACCOUNT_ID" ) ,
316316 ) ,
317- exaApiKey : Config . option ( Config . redacted ( "EXA_API_KEY" ) ) ,
317+ exaApiKey : Config . option ( Config . Redacted ( "EXA_API_KEY" ) ) ,
318318 // Self-host sign-in providers and admission, validated by the runner.
319- signIn : Config . option ( Config . nonEmptyString ( "DX_DEPLOYMENT_SIGN_IN" ) ) ,
319+ signIn : Config . option ( Config . NonEmptyString ( "DX_DEPLOYMENT_SIGN_IN" ) ) ,
320320 googleClientSecret : Config . option (
321- Config . redacted ( "DX_GOOGLE_CLIENT_SECRET" ) ,
321+ Config . Redacted ( "DX_GOOGLE_CLIENT_SECRET" ) ,
322322 ) ,
323- plugins : Config . withDefault ( Config . string ( "DX_DEPLOYMENT_PLUGINS" ) , "" ) ,
323+ plugins : Config . withDefault ( Config . String ( "DX_DEPLOYMENT_PLUGINS" ) , "" ) ,
324324 // Orb providers the deployment installs: e2b, cloudflare, or both.
325325 orbProviders : Config . withDefault (
326- Config . string ( "DX_DEPLOYMENT_ORB_PROVIDERS" ) ,
326+ Config . String ( "DX_DEPLOYMENT_ORB_PROVIDERS" ) ,
327327 "e2b" ,
328328 ) ,
329329 orbWorkerName : Config . option (
330- Config . nonEmptyString ( "DX_DEPLOYMENT_ORB_WORKER_NAME" ) ,
330+ Config . NonEmptyString ( "DX_DEPLOYMENT_ORB_WORKER_NAME" ) ,
331331 ) ,
332332 workloadIdentitySigningKeys : Config . option (
333- Config . redacted ( "DX_WORKLOAD_IDENTITY_SIGNING_KEYS" ) ,
333+ Config . Redacted ( "DX_WORKLOAD_IDENTITY_SIGNING_KEYS" ) ,
334334 ) ,
335335 bitbucketOAuth : Config . option (
336- Config . redacted ( "DX_INTEGRATION_BITBUCKET_OAUTH" ) ,
336+ Config . Redacted ( "DX_INTEGRATION_BITBUCKET_OAUTH" ) ,
337337 ) ,
338338 deploymentZone : Config . option (
339- Config . nonEmptyString ( "DX_DEPLOYMENT_ZONE" ) ,
339+ Config . NonEmptyString ( "DX_DEPLOYMENT_ZONE" ) ,
340340 ) ,
341341 workersDevSubdomain : Config . option (
342- Config . nonEmptyString ( "DX_DEPLOYMENT_WORKERS_DEV_SUBDOMAIN" ) ,
342+ Config . NonEmptyString ( "DX_DEPLOYMENT_WORKERS_DEV_SUBDOMAIN" ) ,
343343 ) ,
344344 daemonIngressName : Config . withDefault (
345- Config . nonEmptyString ( "DX_DEPLOYMENT_DAEMON_INGRESS_NAME" ) ,
345+ Config . NonEmptyString ( "DX_DEPLOYMENT_DAEMON_INGRESS_NAME" ) ,
346346 "dx-dxd" ,
347347 ) ,
348348 signupEnabled : Config . withDefault (
349- Config . boolean ( "DX_SIGNUP_ENABLED" ) ,
349+ Config . Boolean ( "DX_SIGNUP_ENABLED" ) ,
350350 false ,
351351 ) ,
352352 githubCopilotClientId : Config . option (
353- Config . nonEmptyString ( "DX_GITHUB_COPILOT_CLIENT_ID" ) ,
353+ Config . NonEmptyString ( "DX_GITHUB_COPILOT_CLIENT_ID" ) ,
354354 ) ,
355355 modelDeploymentProviders : Config . option (
356- Config . nonEmptyString ( "DX_MODEL_DEPLOYMENT_PROVIDERS" ) ,
356+ Config . NonEmptyString ( "DX_MODEL_DEPLOYMENT_PROVIDERS" ) ,
357357 ) ,
358358 modelEndpointAllowlist : Config . option (
359- Config . nonEmptyString ( "DX_MODEL_ENDPOINT_ALLOWLIST" ) ,
359+ Config . NonEmptyString ( "DX_MODEL_ENDPOINT_ALLOWLIST" ) ,
360360 ) ,
361361 workersAiEnabled : Config . withDefault (
362- Config . boolean ( "DX_MODEL_WORKERS_AI_ENABLED" ) ,
362+ Config . Boolean ( "DX_MODEL_WORKERS_AI_ENABLED" ) ,
363363 true ,
364364 ) ,
365365 workerTraces : Config . withDefault (
366- Config . boolean ( "DX_DEPLOYMENT_WORKER_TRACES" ) ,
366+ Config . Boolean ( "DX_DEPLOYMENT_WORKER_TRACES" ) ,
367367 false ,
368368 ) ,
369369 // Portals: a dedicated zone (never the app's registrable domain) whose
370370 // first-level labels `t-<uuid>-p<port>` serve guest ports. Universal
371371 // SSL covers one wildcard level, so the domain is the zone apex.
372372 portalDomain : Config . option (
373- Config . nonEmptyString ( "DX_DEPLOYMENT_PORTAL_DOMAIN" ) ,
373+ Config . NonEmptyString ( "DX_DEPLOYMENT_PORTAL_DOMAIN" ) ,
374374 ) ,
375375 portalZoneId : Config . option (
376- Config . nonEmptyString ( "DX_DEPLOYMENT_PORTAL_ZONE_ID" ) ,
376+ Config . NonEmptyString ( "DX_DEPLOYMENT_PORTAL_ZONE_ID" ) ,
377377 ) ,
378378 // The deployment runner names it within the 63-character script limit.
379379 portalWorkerName : Config . option (
380- Config . nonEmptyString ( "DX_DEPLOYMENT_PORTAL_WORKER_NAME" ) ,
380+ Config . NonEmptyString ( "DX_DEPLOYMENT_PORTAL_WORKER_NAME" ) ,
381381 ) ,
382382 } ) ;
383383
0 commit comments