Comments (4)
That makes sense, I thought Vike was a bit different but I understood it incorrect.
In the mean time I came across https://github.com/nksaraf/vinxi
Vinxi, which should combine barebones vite with nitro, which seems a working alternative for me. Thank you for your explanation!
I don't know if this issue should be closed, or if someone as you said wants to make a PR. So I leave that up to you
from bati.
Nitro is somewhat incompatible with Vike, there are too many overlapping features, and I have not found (yet) a way to make use of Nitro in a meaningful way.
H3, which powers Nitro web server, is already implemented though.
Keeping this issue opened for discussion.
from bati.
I'm curious as to why that is. As nitro is used in nuxt and solid start it seems like a perfect candidate to be combined with Vike. What kind of features do overlap too much and would it be possible to choose which one to use if desired by the end user?
from bati.
@ThimoDEV Vike routing behaviour is central to the way it works, and it seems to be the same for Nitro. We would need a custom Nitro middleware for routing, duplicating the work of Vike (and probably impacting performances).
Auto imports are probably not compatible with Vike compiler.
Assets handling is already handled by Vike.
This leaves Storage Layer and Cache API as unique features of Nitro, which can probably be replaced by some npm module if necessary.
tl;dr It would take a lot of time to implement, properly test and keep up to date with Vike, so for now it's not a priority for me.
That being said, anyone wants to create a PR for it, I would be happy to assist.
from bati.
Related Issues (20)
- internationalization with inlang paraglide-js
- PandaCSS
- Fastify
- preview script not working HOT 2
- Error page doesn't detect 404 properly in React
- Add support for ElysiaJS and Bun
- Incorrect usage of checkbox HOT 2
- Install Pinia HOT 1
- Consider deno
- Smarter detection of imported dependency files HOT 1
- Question about react streaming HOT 11
- Website: show a message for features incompatible with stackblitz HOT 3
- Support modern yarn HOT 4
- Endpoints 404 with vercel HOT 2
- Could not resolve "vike-react/config" [plugin vike-esbuild] HOT 3
- Missing file "./server/vike-handler.ts" HOT 1
- Website down HOT 1
- Add Unocss HOT 1
- Always provide `headersOriginal`?
- Inconsistent `context`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bati.