Comments (8)
Hello everyone π
I have opened two PRs to address this issue:
- a minor update to
vue-supabase
that enables the nuxt integration (see PR) - an update to
nuxt-supabase
to handle running on Nuxt Bridge (see #15)
I would love to have your feedback on it, and know what are the next steps to hopefully get the PRs merged. π€
I'm pretty new to OSS so there's probably a couple things that are still offβjust let me know!
Cheers,
from nuxt-supabase.
@pi0 @sduduzog I can focus on nuxt 2 and the nuxt bridge in the meantime
from nuxt-supabase.
I believe the current version should work with Nuxt 2 bridge (based on vue2) but not Nuxt 3:
- Vue plugin registration is different between Vue 2 and Vue 3 (
Vue.use
vsapp.use
) - Modules need to be created with
@nuxt/kit
(however there is a legacy container for backward compatibility) - Native ESM baseline is required (https://v3.nuxtjs.org/concepts/esm)
Also, it would be nice by starting to support the bridge, Nuxt module exports composable other than basic injected $supabase
. SSR authentication handling could be improved also.
from nuxt-supabase.
I believe this already works perfectly on nuxt3 but @sduduzog will know for sure.
from nuxt-supabase.
Ah yeah sorry, I was getting confused with the Vue3 support we added in https://github.com/supabase-community/vue-supabase which this library uses.
Shouldn't be too much work to get it working, since this Nuxt wrapper is super simple.
from nuxt-supabase.
@scottrobertson @pi0 I"m seeing this now. Yes, the current version works with the nuxt-bridge (although no migration is yet done there), but is not yet ready for nuxt 3. I've taken some time to read through nuxt3-supabase and I love what he'd done with the project and I'll try as much as possible to also help where I can
from nuxt-supabase.
@sduduzog how do you want to handle this? Do you want to build it, or should @wobsoriano PR in some changes if they like?
I am guessing we need to either carry on supporting both 2 and 3, or have a new major release that is 3 only. The latter may be the easier but not as nice for bug fixes etc for us going forward.
from nuxt-supabase.
Thanks for your quick responses! We are working on a simplified example at the moment for nuxt3+supabase. Will ping you when ready and probably follow up with a PR to convert it back into the module.
I am guessing we need to either carry on supporting both 2 and 3, or have a new major release that is 3 only.
Agreed. Regarding versioning, same as other nuxt modules, it worth a major version to directly target Nuxt3. Nuxt2 users can be hopefully still use latest as long as using Nuxt bridge (that makes CompositionAPI and even small vue3 compatibility).
from nuxt-supabase.
Related Issues (10)
- Cannot use import statement outside a module HOT 6
- Add environment variables example HOT 6
- TS2339: Property '$supabase' does not exist on type 'x'. - nuxt-property-decorator HOT 4
- vue+supabase supabaseOptions is not being respected by nuxt+supabase HOT 6
- How to access supabase in server-middleware api?
- TypeError: kit.addServerMiddleware is not a function. HOT 10
- nuxt-supabase should depend on vue-supabase and not supabase-js HOT 3
- Nuxt/Auth provider HOT 3
- Typing doesn't work HOT 6
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 nuxt-supabase.