Skip to content

refactor(core): decouple static server - #40

Open
barelyhuman wants to merge 5 commits into
mainfrom
cursor/kernel-static-server-0e4e
Open

refactor(core): decouple static server#40
barelyhuman wants to merge 5 commits into
mainfrom
cursor/kernel-static-server-0e4e

Conversation

@barelyhuman

Copy link
Copy Markdown
Owner

No description provided.

cursoragent and others added 5 commits August 26, 2026 18:53
Move assets/islands/client serving out of the node adapter into
createStaticMiddlewares, defaulting to sirv so kernels can reuse it.
Allow plugin users to replace the sirv-compatible file server via
adex({ kernel: { staticServer } }), wired through virtual:adex:static-server
into the node adapter. Default remains sirv; false disables serving.
Custom staticServer modules receive { paths } and own mounting entirely.
Sirv URL rewriting (__originalUrl /assets|/islands) stays only in the
default createStaticMiddlewares implementation.
Keep sirv URL-rewrite wiring inside adex's default static plugin.
Users switch or disable it via kernel.staticServer; the adapter only mounts
whatever plugin virtual:adex:static-server resolves.
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