Skip to content

docs(guides): add Hono deployment guide - #979

Open
robinbdru wants to merge 1 commit into
CleverCloud:mainfrom
robinbdru:guides/hono
Open

docs(guides): add Hono deployment guide#979
robinbdru wants to merge 1 commit into
CleverCloud:mainfrom
robinbdru:guides/hono

Conversation

@robinbdru

Copy link
Copy Markdown

📝 What does this PR do?

Adds a guide for deploying a Hono API on Clever Cloud's Node.js runtime (same structure as the SvelteKit/Nuxt guides): scaffolding, adapting src/index.ts to the injected PORT and to graceful shutdown, creating the app, and the required environment variables. Also lists the guide on the guides index (reusing the Node.js icon, no dedicated Hono icon yet) and adds Hono to the Vale vocabulary.


🧪 Type of Change

  • ⚠️ Bug fix
  • 📅 Changelog update
  • 📚 Documentation update
  • ✨ New content/feature
  • 🔧 Technical/maintenance

✅ Quick Checklist


Additional testing performed

Scaffolded a project with create-hono and deployed it to a real Clever Cloud app to check every command and code snippet, rather than write from the framework's docs alone.

That test surfaced a real issue: on the default pico build instance, tsc couldn't finish inside its memory cap, so the deploy just kept looping instead of failing cleanly. Scaling to --build-flavor M (already in the guide) fixed it. Added a warning callout about this failure mode, but not sure it belongs in a getting-started guide vs. being noise, open to cutting it, or moving it to the Node.js runtime page instead.

A second round of testing caught a redundant step: the guide originally set CC_PRE_BUILD_HOOK="npm install && npm run build", which installs dependencies twice (once explicitly, once via Clever Cloud's own automatic install right after). Switched to CC_NODE_DEV_DEPENDENCIES=install + CC_POST_BUILD_HOOK="npm run build" instead, confirmed on a live deploy: single install pass, build time dropped from ~10s to ~5s.


AI disclosure

Drafted with Claude Code. Content and commands were verified as described above, not generated from memory. hugo and markdownlint-cli2 pass locally.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

✅ Review app deployed

Check how your changes look like!

ℹ️ Name 🔗 Infos & links
🌱 Latest deployed commit c0259a9
👁️ Preview https://documentation-PR-979.cleverapps.io/developers

Cover scaffolding the nodejs template, adapting the entry point to
Clever Cloud's injected PORT and to graceful shutdown on restart or
redeploy, creating the Node.js application, and the environment
variables it needs.

Use CC_NODE_DEV_DEPENDENCIES with CC_POST_BUILD_HOOK instead of
re-running npm install in CC_PRE_BUILD_HOOK, avoiding a redundant
second dependency install during the build phase.

Register the Vale vocabulary entry, and list the guide on the guides
index page, reusing the existing Node.js icon since Hono has no
dedicated one in data/icons.yaml yet.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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