-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it generic? #51
Comments
I'll probably tackle this subject myself, as it's closely tied to |
The Vite (dev) logic will be splitted into separated packages:
To reduce the confusion, a good idea is to use a different naming convention for the packages to create a difference between dependencies and dev dependencies: eg |
Again, splitting packages into dev/prod packages is a non-goal and a DX no-go. |
The vike/vite code should not run in the production bundle. This point can be achieved with splitting the code (with dynamic imports) and package and/or with building the code. Idk if there are other ways. |
vike-node
supports these server frameworks: https://github.com/vikejs/vike-node#supported-servers.Can we make
vike-node
generic so that it can take any server entry./path/to/server/index.ts
as argument? So that it becomes more like a drop in replacement forts-node
.In addition, we can have
vike-{express,hono,fastify,...}
for seamless integration (powered byuniversal-middleware
).CC @magne4000 @rtritto
Labeling this as
low-prio
becausevike-{express,hono,fastify,...}
are more important (they are crucial for the Stem vision). But it's good to have this nice-to-have-goal on the radar since we're currently refactoring the whole server integration.The text was updated successfully, but these errors were encountered: