standalone production server #1282
Labels
CLI
documentation
Greenwood specific docs
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
Init
question
Further information is requested
SSR
Milestone
Summary
While Greenwood output its build in standalone files (even for SSR) in order to self-host using Greenwood's server (
greenwood serve
] docs requires using the CLI, which requires invoking Greenwood on a production server, or installing it as production dependency e.g.However, it would be extremely valuable and more ergonomic if you could boot up Greenwood as a server using just Node.js, by providing a server.js entry point / front-controller that bundles everything needed for the routing and static asset handling, so instead you can just build and serve. Pretty much just like this feature in Next.js
Having the CLI only need to be a dev / build time tool and not be in the hot path of production would be really really nice.
Details
In particular for these two key responsibilities would have to be entirely self-contained:
I suppose this would likely just be another custom Rollup configuration and we just build up the entry point manually.
Some related thoughts that could / should be their own issue
node server.js
then there's nothing else needed?The text was updated successfully, but these errors were encountered: