Skip to content

feat: add ssg command - #93

Merged
yusukebe merged 3 commits into
nextfrom
feat/ssg
Aug 19, 2026
Merged

feat: add ssg command#93
yusukebe merged 3 commits into
nextfrom
feat/ssg

Conversation

@yusukebe

@yusukebe yusukebe commented Aug 19, 2026

Copy link
Copy Markdown
Member

Add hono ssg (part of #77). It loads the app and generates static files with toSSG() from hono/ssg.

  • Output is the shared JSON envelope: { output, files }
  • -o, --outdir sets the output directory (default: static)
  • --include / --exclude select routes by path (* matches anything), so you can skip routes without touching the app code. Implemented with toSSG's beforeRequestHook
  • A toSSG failure becomes an SSG_FAILED JSON error

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit dcefbdd into next Aug 19, 2026
4 checks passed
@yusukebe
yusukebe deleted the feat/ssg branch August 19, 2026 00: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.

1 participant