nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
733 stars 129 forks source link

Add option to set a specific supabase URL on the server side #319

Closed jfoucher closed 4 months ago

jfoucher commented 10 months ago

Types of changes

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:

netlify[bot] commented 10 months ago

Deploy request for n3-supabase pending review.

Visit the deploys page to approve it

Name Link
Latest commit 941ef0ee45bb24e61e71b8fd6742faaaea9ce1e4
atinux commented 10 months ago

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)

nuxt-studio[bot] commented 10 months ago

Live Preview ready!

Name Edit Preview Latest Commit
supabase Edit on Studio ↗︎ View Live Preview 941ef0ee45bb24e61e71b8fd6742faaaea9ce1e4
jfoucher commented 10 months ago

Requested changes have been made in https://github.com/nuxt-modules/supabase/pull/319/commits/941ef0ee45bb24e61e71b8fd6742faaaea9ce1e4