Support a user-controlled app/server entrypoint #56
Replies: 4 comments
-
|
this feels like the right place for middleware/auth imo. i would keep it as a composition boundary instead of a large Flue middleware API: user owns the app/server entry, Flue exposes a mount function for generated agent routes + manifest/health. rough shape:
then Flue does not need to invent app framework features, but users get real server control. |
Beta Was this translation helpful? Give feedback.
-
|
Strong +1 on the framing here, and on @stainlu's Two pieces of context from the code that I think shape the design:
Suggested ordering:
|
Beta Was this translation helpful? Give feedback.
-
|
tackling this tonight! |
Beta Was this translation helpful? Give feedback.
-
|
Shipped in New
Works on both Node and Cloudflare targets. Closing as resolved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be useful for Flue projects to define their own application entrypoint, such as an
app.tsorserver.ts, that Flue can build around or mount into.This would give projects a clear place to add middleware, configure cross-cutting server behavior, and handle concerns like authentication or request preprocessing before agent routes run.
Beta Was this translation helpful? Give feedback.
All reactions