Skip to content

feat: add configurable build entry point#104

Merged
uhyo merged 3 commits intomasterfrom
claude/add-build-entry-point-7EZaS
Apr 5, 2026
Merged

feat: add configurable build entry point#104
uhyo merged 3 commits intomasterfrom
claude/add-build-entry-point-7EZaS

Conversation

@uhyo
Copy link
Copy Markdown
Owner

@uhyo uhyo commented Apr 5, 2026

Add a build option to the plugin that accepts a path to a module
that can customize the build process. The module default-exports a
function receiving { build }, allowing users to run additional work
(e.g. sitemap generation) before, after, or in parallel with the
standard build flow. The module runs in the RSC environment and is
only invoked during production builds.

https://claude.ai/code/session_01D7p4ghgU7hqJA6SnMfVtPA

claude added 3 commits April 5, 2026 14:09
Add a `build` option to the plugin that accepts a path to a module
that can customize the build process. The module default-exports a
function receiving `{ build }`, allowing users to run additional work
(e.g. sitemap generation) before, after, or in parallel with the
standard build flow. The module runs in the RSC environment and is
only invoked during production builds.

https://claude.ai/code/session_01D7p4ghgU7hqJA6SnMfVtPA
Replace the static sitemap.xml with dynamic generation via the new
`build` entry point. The sitemap is now derived from the route
definitions, ensuring it stays in sync as pages are added or removed.

Also adds `outDir` to `BuildEntryContext` so build entries know where
to write additional output files.

https://claude.ai/code/session_01D7p4ghgU7hqJA6SnMfVtPA
…ate export

Move `BuildEntryContext` and `BuildEntryFunction` type exports from the
dedicated `@funstack/static/build-entry` path to `@funstack/static/server`,
keeping the public API surface smaller.

https://claude.ai/code/session_01D7p4ghgU7hqJA6SnMfVtPA
@uhyo uhyo merged commit f71429a into master Apr 5, 2026
2 checks passed
@uhyo uhyo deleted the claude/add-build-entry-point-7EZaS branch April 5, 2026 14:23
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