supabase
supabase copied to clipboard
Add option to set a specific supabase URL on the server side
Types of changes
- [ ] Bug fix (a non-breaking change which fixes an issue)
- [x] New feature (a non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
This change adds a new configuration option: serverUrl. When set, it overrides the url option on the serverside only when using SSR.
A problem can occur when using nuxt-supabase with SSR in a docker-compose environment. The browser will connect to supabase on the exposed port, e.g. localhost:8000 whereas the server side, running in docker will have to connect to e.g. supabase:8000
This PR allows for setting a different supabase server URL on the browser side and on the server side.
Checklist:
- [x] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes (if not applicable, please state why) I didn't see any tests in the source, nor a way to run any.
Deploy request for n3-supabase pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | 941ef0ee45bb24e61e71b8fd6742faaaea9ce1e4 |
Could you please remove the update on the package.json and lock file?
Can you also update the documentation to explain about your new option? https://supabase.nuxtjs.org/get-started#options (https://github.com/nuxt-modules/supabase/edit/main/docs/content/2.get-started.md)
Live Preview ready!
| Name | Edit | Preview | Latest Commit |
|---|---|---|---|
| supabase | Edit on Studio ↗︎ | View Live Preview | 941ef0ee45bb24e61e71b8fd6742faaaea9ce1e4 |
Requested changes have been made in https://github.com/nuxt-modules/supabase/pull/319/commits/941ef0ee45bb24e61e71b8fd6742faaaea9ce1e4