Repository navigation
fix(cloudflare/container): forward startup options through Cloudflare.start - #341
Merged
sam-goodwin merged 1 commit intoMay 16, 2026
Conversation
….start Cloudflare.start currently calls container.start() with no arguments, silently dropping any ContainerStartupOptions the caller wants to apply on each start (e.g. enableInternet, entrypoint, envVars overrides). Accept an optional second parameter and forward it to container.start so per-instance startup overrides are respected.
DavidJFelix
pushed a commit
to DavidJFelix/alchemy-effect
that referenced
this pull request
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cloudflare.startcurrently callscontainer.start()with no arguments, silently dropping anyContainerStartupOptionsthe caller wants to apply on each start (e.g.enableInternet,entrypoint,envVarsoverrides).This is a 10-line change that adds an optional second parameter to
Cloudflare.startand forwards it tocontainer.start.Why
The underlying
Containerinterface already accepts options:And
bindContainerinContainerBinding.tsalready wires the runtime side correctly:But the public-facing
Cloudflare.starthelper has no way to pass options through, so callers have no path to set per-instance startup overrides documented in the Cloudflare Containers API. The runtime is fully ready — only the call-site signature is missing.Repro
Diff
10 insertions, 3 deletions in
StartContainer.tsonly:ContainerStartupOptionsalongside the existingContainer/ContainerErrorimportsoptions?: ContainerStartupOptionsas the second parameteroptionstocontainer.start(options)No behavior change for existing callers (the parameter is optional).