@bgunnarsson/galdur
v1.0.14
Published
Galdur SSR-First React Framework
Readme
galdur
CLI wrapper for Galdur tooling. Provides the galdur command, which delegates to framework sub-commands.
Installation
The CLI is included as a dependency of any Galdur app. It is available as galdur in node_modules/.bin.
galdur <command> [options]Commands
| Command | Description |
|---------|-------------|
| build | Builds the app (SSR server + client bundles). Runs pnpm run build in the resolved app root. |
| ssg | Builds the app then runs static site generation via galdur-ssg, outputting to dist/static. |
| hybrid | Same as ssg, but also builds the @bgunnarsson/galdur-ssg package first when running in a monorepo. |
| static | Builds the app and renders a fully static dist/static output (sets GALDUR_SSG_STATIC=1). In a monorepo, also builds @bgunnarsson/galdur-ssg first. |
Options
| Flag | Description |
|------|-------------|
| --insecure | Disables TLS certificate validation by setting NODE_TLS_REJECT_UNAUTHORIZED=0. Useful for local development with self-signed certs. Applies to ssg, hybrid, and static commands. |
Exports
| Export | Description |
|--------|-------------|
| GaldurCommand | TypeScript type representing valid CLI commands: 'build' \| 'ssg' \| 'hybrid' \| 'static'. |
Notes
- The
galdur-ssgpackage also exposes its owngaldur-ssgbinary. Both are equivalent for SSG. - The CLI is intentionally thin — most functionality lives in the individual packages it delegates to.
- The CLI automatically resolves the app root by looking for
galdur.config.ts, standard app entry points, orpnpm-workspace.yaml(monorepo detection).
