Skip to content

docs: make cloud environment files a practical workflow - #26393

Merged
dvdksn merged 7 commits into
docker:mainfrom
dvdksn:sbxenv-cloud
Oct 22, 2026
Merged

dvdksn merged 7 commits into
docker:mainfrom
dvdksn:sbxenv-cloud

Conversation

@dvdksn

@dvdksn dvdksn commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Summary

The cloud environment example didn't show how to work on a project, and readers had to reach later subsections to discover the differences from local sandboxes. Move the walkthrough into the cloud section, explain those differences upfront, and show how to create an environment, copy in a project, work with Claude Code, retrieve changes, and clean up.

Cover cloud credentials, expiration, unsupported settings, and reuse limitations. Preserve the original entry anchor and update cloud cross-references. Behavior checked against docker/sandboxes release/v0.49 at c5b19951af12; scoped Markdown and Vale checks, Hugo build, and rendered internal link checks passed. No live cloud session was run.

@netlify /ai/sandboxes/cloud/environment-files/

Generated by Codex

The cloud example demonstrated a variable without showing how to work on a project or explaining remote filesystem behavior upfront.

Move the walkthrough into the cloud section, cover project transfer and retrieval, and explain credentials, expiration, and configuration limits. Preserve the existing entry anchor and update cloud cross-references.
@dvdksn
dvdksn requested a review from a team October 20, 2026 14:58
@dvdksn dvdksn added the status/review Pull requests that are ready for review label Oct 20, 2026
@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 78ac04d
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6ad8647e75ba3c9b42b875d4
😎 Deploy Preview https://deploy-preview-26393--docsdocker.netlify.app/ai/sandboxes/cloud/environment-files/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Cloud sandboxes do not mount the host project, so keeping the environment file in a separate parent directory provides no protection benefit.

Put the example file in the project root, explain that its location is optional, and copy the current project into the sandbox with results retrieved to a sibling directory.
The walkthrough only showed copying results and did not explain when to configure GitHub access. The adaptation guidance also mixed unrelated checks in one section.

Add optional GitHub credential setup before creation and an agent push workflow with local branch retrieval. Organize adaptation guidance under headings for settings, host commands, credentials, and updates.
The host command guidance only contrasted local and remote dependency installation without showing a useful cloud workflow.

Add a postCreate upload example and explain host preparation, result retrieval, lifecycle timing, and the limits of cleanup hooks.
Replace the list of host command uses with an explanation of how lifecycle commands make workflows spanning the host and cloud repeatable.
Move the postCreate upload example beside the manual transfer step so readers see how one command can provision and prepare a sandbox. Keep broader lifecycle guidance later and link to it from the example.
The automated upload example understated file selection, working directory assumptions, and what happens if the postCreate command fails.

Explain ignored files, staging directories, reproducible Git inputs, and one-time upload behavior. Document the existing-sandbox recovery path after an upload failure.
@dvdksn
dvdksn marked this pull request as ready for review October 21, 2026 13:18
@dvdksn
dvdksn merged commit 6bc39c4 into docker:main Oct 22, 2026
15 checks passed
@dvdksn
dvdksn deleted the sbxenv-cloud branch October 22, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ai status/review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants