Skip to content

Add .devcontainer/devcontainer.json reference config#18379

Open
JoshFerge wants to merge 1 commit into
masterfrom
joshferge/sentry-docs-devcontainer
Open

Add .devcontainer/devcontainer.json reference config#18379
JoshFerge wants to merge 1 commit into
masterfrom
joshferge/sentry-docs-devcontainer

Conversation

@JoshFerge

@JoshFerge JoshFerge commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

Adds a Dev Container config for sentry-docs. Standard devcontainer.json (VS Code Dev Containers / GitHub Codespaces) that also serves as the source-of-truth environment config for Sentry's coding-agent sandbox (Per-Repo Environments, part of AIML-2937).

What the coding-agent sandbox honors vs ignores

  • Honored: onCreateCommand / updateContentCommand / postCreateCommand, containerEnv, remoteEnv
  • Ignored (by design, for security): image, build/dockerfile, features

The sandbox runs on its own hardened, multi-language base image; the image + node version here only apply to local Dev Containers / Codespaces. The repo pins node 22.16.0 / pnpm 10.30.0 via package.json (volta + packageManager).

Lifecycle

  • onCreateCommand / updateContentCommand: corepack enable && pnpm install --frozen-lockfile
  • containerEnv: NODE_OPTIONS (build headroom) + NEXT_PUBLIC_SENTRY_DSN (a public client key; next.config.ts requires it for a production build — placeholder for dev/CI, override for prod deploy)

Verified in the universal sandbox image

  • pnpm install --frozen-lockfile resolves the lockfile and installs cleanly; pnpm auto-pinned to 10.30.0 via packageManager.
  • pnpm build runs end to end — enforce-redirects, generate-og-images (2541 files scanned), generate-doctree, then next build static generation across ~10k pages — once NEXT_PUBLIC_SENTRY_DSN is set.

🤖 Generated with Claude Code

Agent transcript: https://claudescope.sentry.dev/share/tehgJLfYHA86brLj-Cn-6jy-b5NcSf3HK_3KeckRulA

Adds a Dev Container config for sentry-docs that doubles as the source-of-truth
environment config for Sentry's coding-agent sandbox (Per-Repo Environments,
AIML-2937). The sandbox honors the lifecycle commands (corepack enable + pnpm
install --frozen-lockfile) and containerEnv, while ignoring image/build/features
for security. The image + node version apply to local Dev Containers / Codespaces.

Verified in the universal sandbox image:
- pnpm install --frozen-lockfile resolves the lockfile and installs cleanly
  (pnpm auto-pinned to 10.30.0 via packageManager).
- pnpm build runs end to end (enforce-redirects, generate-og-images,
  generate-doctree, next build) once NEXT_PUBLIC_SENTRY_DSN is set — hence the
  containerEnv entry. Static generation covers ~10k pages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 11, 2026

Copy link
Copy Markdown

AIML-2937

@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Jun 11, 2026 7:02pm
sentry-docs Ready Ready Preview, Comment Jun 11, 2026 7:02pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant