Giter VIP home page Giter VIP logo

Comments (4)

ThimoDEV avatar ThimoDEV commented on July 29, 2024 1

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.

magne4000 avatar magne4000 commented on July 29, 2024

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.

ThimoDEV avatar ThimoDEV commented on July 29, 2024

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.

magne4000 avatar magne4000 commented on July 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.