-
Notifications
You must be signed in to change notification settings - Fork 450
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
added nuxt-bridge #3426
added nuxt-bridge #3426
Conversation
I think there are breaking changes with some of the dependencies we use when switching to nuxt-bridge. This transition was attempted here. The breaking issues could be due to using nitro in that PR but either way I don't see an advantage to going to nuxt bridge. After reading through peoples experiences using bridge to migrate to nuxt3 it seems like bridge does not simplify the migration to nuxt3. Since nuxt 3 requires a full rewrite of the client I think it's worth exploring other options, like React Remix |
oh yeah i saw that but i gathered that alot of the pushback was more related to the messy git history, i dont think migrating to bridge necessarily facilitates a migration to nuxt3, with nitro you could transition alot of different aspects of the app forwards, i got nitro building, with almost full functionality, but yeah, i think theres many benefits to nuxt-bridge w/o planning on moving to nuxt3 |
i got audiobookshelf to build on nuxt-bridge's nitro with some tweaks to epubjs, its kind of a complicated git commit history, and im curious as to whats the best way to proceed, |
I don't see how migrating to nuxt-bridge would be useful if we are looking at changing frameworks or even if we go to nuxt3. I'm looking at react remix right now which would be a complete re-write. If we go to nuxt3 we would salvage some components but still mostly a re-write. |
i thought i explained pretty thoroughly in my above post
remix is build on top of vite nuxt-bridge has a vite integration to get nuxt-bridge to work with vite, you must first enable nitro,
i havent looked much into remix tbh, but as i previously mentioned, the reason i started contributing is because as a rule, i tend to avoid complete rewrites. i just think using nuxt-bridge and some nitro / vite configuration, a nitro migration is needed for vite, and vite is needed for remix, and thats only speaking from the client perspective, i do think migrating to at least vite is extremely wise. |
ive been looking more into remix, https://remix.run/blog/incremental-path-to-react-19#remix-became-a-wrapper
|
The first thing I want to look at is if the folder structure can be kept the same as it is now with the client inside |
i believe that even thinking about a framework shift / complete rewrite is expensive from a technical debt perspective while i completely agree that it would be extremely nice to clean house, im curious as to what has influenced your decision and pushed you towards the remix route ( pun intended ) i actually dont hate that idea at all, i just dont have much experience in that area, i feel like the spectrum that kind of exists today is, to state it plainly, Next at one end, and Remix on the other and from my perspective, i was actually extremely surprised to have seen that, webpack 4 really hurts, when i started, my goal was to try to get a vite build working, and all my experience in the last month, but to get that to work, you gotta go thru nitro i havent even heard of nitro before this project, the parent organization, unjs, seems hella dedicated to web standards, alot of the headache of getting AudioBookShelf to build using nuxt-bridge, now that ABS builds, i need some feedback as to if there are buggy edge cases, if that makes sense? and while it builds, it is extremely hacky, but i believe it is done, and thats not even mentioning unjs helpful tools, ok cheers, this rambling rant has gone on long enough |
sorry, i just saw your response, i think alot of the benefits of stuff like SSR is that you dont need to maintain both a frontend and a backend, as previously mentioned, i feel like alot of code can be "deduped" reduced removed and i think itll build faster, serve at a higher volume, and use less memory when running and i think bridge really is the first step also have you looked into server migrations? 🙏🙏🙏 |
I definitely want to go with SSR this time around and I understand what you are saying with having 1 package.json for the client and server in the case. My original thought was to have all the requests pass through to the client unless they are API, Auth or some others. So it is still SSR. I don't like how many dependencies that are used for these js frameworks. I like that we can keep the server dependencies clean since every js framework will use thousands of dependencies. |
this video from awesome explaining the MPA -> SPA -> SSR progression kind of inspired this reply i totally understand your wanting to keep the but i believe the true value of SSR right now, the client performs alot of traditional server-side logic right now, ABS's client requires a build step, most, if not all of the routing logic could be statically built, service workers also come with the added benefit of PWA functionality, sidenote: p.p.s. quick little video that has some good visualizations of under the hood processes - nitro vs nuxt |
followed the steps here
https://nuxt.com/docs/bridge/overview