Skip to content

Add Cloud Agent development environment - #7

Open
mhammad93 wants to merge 1 commit into
mainfrom
cursor/setup-cloud-agent-env-a27d
Open

mhammad93 wants to merge 1 commit into
mainfrom
cursor/setup-cloud-agent-env-a27d

Conversation

@mhammad93

@mhammad93 mhammad93 commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Summary

Sets up a Cloud Agent development environment for this zero-dependency, Node.js static site (repo-managed via a committed .cursor/environment.json, the highest-precedence environment source).

The site is generated by node build.js (renders template.html + content.json into dist/) and tested with Node's built-in test runner (node --test). There is no package.json and no npm dependencies, so the default base image (Node 22 + Python 3, both already present) needs no custom Dockerfile or system packages.

.cursor/environment.json

  • install: node build.js — regenerates the dist/ output (source-derived, idempotent, terminates).
  • terminals.dev-server: node build.js && python3 -m http.server 3000 --directory dist — rebuilds and serves the site so it is visible/inspectable at http://localhost:3000.
  • ports: exposes 3000.

Validation

Local (this VM):

  • node --test42/42 tests pass.
  • node build.js run twice → identical 81912-byte output (idempotent).
  • Dev server returns HTTP 200 for /, /thanks.html, /404.html, /robots.txt, /sitemap.xml, and static assets; homepage renders the correct <title> with 0 unresolved template tokens; contact form renders and accepts input.

Prebuilt environment build (bld-20260831-4fbeb4a0-c11c-4d26-b651-0a5ba92b2816, status SUCCEEDED):

  • install (node build.js) ran on the default image → Built dist/index.html (81912 bytes) + sitemap + robots, exit 0.

Fresh Cloud Agent booted from that build (7/7 checks passed):

  • Node v22.14.0, Python 3.12.3.
  • .cursor/environment.json present; dist/ baked in from install.
  • node --test → 42/42; node build.js reproduces output; dev server serves all routes 200, correct title, 0 unresolved tokens.

Activation

Merging this PR makes the environment available to future Cloud Agents on this repository (the committed .cursor/environment.json is read directly from the repo).

Open in Web Open in Cursor 

Co-authored-by: Mohammed Hammad <mhammad93@users.noreply.github.com>
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hammadmedia Ready Ready Preview Aug 31, 2026 7:22pm

Request Review

@mhammad93
mhammad93 marked this pull request as ready for review August 31, 2026 19:50
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.

2 participants