Deploy Astro with Cursor
Install one skill, and Cursor can create the project, set your variables and put your Astro app online. It costs $0, with no credit card.
Last updated November 25, 2026
Install the skill
Run this in your project and choose Local or Global.
npx ezhst skill install
Use Cursor's agent mode with terminal access, so it can run ezhst commands in your project.
If Cursor does not discover the skill, ask it to read the installed SKILL.md or skill.md first.
Tell Cursor to deploy
Deploy this Astro app to Reverhost. Read the Reverhost skill first. Report the live URL when it is running.
What the agent runs
npx ezhst projects create my-project --link npx ezhst apps create my-app npx ezhst link --project <project-slug> --app <app-slug> npx astro add node npx ezhst build dockerfile set -f Dockerfile npx ezhst env import .env npx ezhst deploy
The agent saves a Dockerfile based on the Node.js template, with node ./dist/server/entry.mjs as the start command:
FROM node:22-alpine WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN --mount=type=secret,id=appenv,target=/run/secrets/appenv sh -c 'set -a; . /run/secrets/appenv; set +a; npm run build' ENV NODE_ENV=production PORT=3000 HOST=0.0.0.0 EXPOSE 3000 CMD ["node", "./dist/server/entry.mjs"]
The skill tells the agent to read the build log and fix failures. For Astro, expect it to also run:
npx astro add node
Astro details to check
Install @astrojs/node in standalone mode and use on-demand rendering where you need a server. Then set the Node.js template's last line to node ./dist/server/entry.mjs.
A purely static Astro site has no Node server, so it needs the Node adapter, or a Dockerfile that serves dist with a small static file server.
If the deploy fails
The agent should read the build log, fix the cause and deploy again. You can run the same commands yourself.
npx ezhst deployments log --json npx ezhst logs --tail 200 --json
If the build passes but nothing loads, see why a Astro app is unreachable. See the Astro hub for every Astro guide, or free Astro hosting for what is included.
Frequently asked questions
Can Cursor create a Reverhost account for me?
Yes. The skill tells the agent to ask for your name, email and password and then register. You then give the agent the 6-digit verification code from your inbox, and it runs ezhst verify <code> before anything else.
Will Cursor see my secrets?
The agent can read files and command output in its session. The skill tells it to put secrets in env vars and not to print them back unless you ask.
Start for free
Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.
$npx ezhst skill install