The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Merge branch 'master' into feat/self-hosted-storage
Francisco Mazzoniff0f89472cbb
diff --cc docker/.env.exampleindex 7700710f95b,aa0ee2f2148..3d68946481e--- a/docker/.env.example+++ b/docker/.env.example@@@ -70,5 -70,8 +70,8 @@@ ENABLE_PHONE_AUTOCONFIRM=tru# Studio - Configuration for the Dashboard############+ STUDIO_DEFAULT_ORGANIZATION=Default Organization+ STUDIO_DEFAULT_PROJECT=Default Project+STUDIO_PORT=3000-PUBLIC_REST_URL=http://localhost:8000/rest/v1/ # replace if you intend to use Studio outside of localhost+SUPABASE_PUBLIC_URL=http://localhost:8000 # replace if you intend to use Studio outside of localhostdiff --cc docker/docker-compose.ymlindex 2eed64571ff,bfcf022d9bc..2bf444e5aa6--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@@ -17,8 -17,11 +17,11 @@@ servicesSTUDIO_PG_META_URL: http://meta:8080POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}+ DEFAULT_ORGANIZATION: ${STUDIO_DEFAULT_ORGANIZATION}+ DEFAULT_PROJECT: ${STUDIO_DEFAULT_PROJECT}+SUPABASE_URL: http://kong:8000- SUPABASE_REST_URL: ${PUBLIC_REST_URL}+ SUPABASE_REST_URL: ${SUPABASE_PUBLIC_URL}SUPABASE_ANON_KEY: ${ANON_KEY}SUPABASE_SERVICE_KEY: ${SERVICE_ROLE_KEY}diff --cc studio/.envindex 633099bfb61,478baf5dc20..dd9c8a3205b--- a/studio/.env+++ b/studio/.env@@@ -1,8 -1,11 +1,11 @@@STUDIO_PG_META_URL=http://localhost:8000/pgPOSTGRES_PASSWORD=your-super-secret-and-long-postgres-password+ DEFAULT_ORGANIZATION_NAME=Default Organization+ DEFAULT_PROJECT_NAME=Default Project+SUPABASE_URL=http://localhost:8000-SUPABASE_REST_URL=http://localhost:8000/rest/v1/+SUPABASE_REST_URL=http://localhost:8000SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GESUPABASE_SERVICE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Qdiff --cc studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsxindex 98fa7181c6b,c5b6ddb9036..5a2c1a7bac5--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx@@@ -63,8 -64,43 +64,38 @@@ export const generateProductRoutes = (rkey: 'database',label: 'Database',icon: <IconDatabase size={18} strokeWidth={2} />,- link: isProjectBuilding ? buildingUrl : `/project/${ref}/database/tables`,+ link:+ ref &&+ (isProjectPaused+ ? homeUrl+ : isProjectBuilding+ ? buildingUrl+ : `/project/${ref}/database/tables`),+ },+ {+ key: 'auth',+ label: 'Authentication',+ icon: <IconUsers size={18} strokeWidth={2} />,+ link:+ ref &&+ (isProjectPaused+ ? homeUrl+ : isProjectBuilding+ ? buildingUrl+ : `/project/${ref}/auth/users`),+ },- ...(IS_PLATFORM- ? [- {- key: 'storage',- label: 'Storage',- icon: <IconArchive size={18} strokeWidth={2} />,- link:- ref &&- (isProjectPaused- ? homeUrl- : isProjectBuilding- ? buildingUrl- : `/project/${ref}/storage/buckets`),- },- ]- : []),-++ {++ key: 'storage',++ label: 'Storage',++ icon: <IconArchive size={18} strokeWidth={2} />,++ link:++ ref &&++ (isProjectPaused++ ? homeUrl++ : isProjectBuilding++ ? buildingUrl++ : `/project/${ref}/storage/buckets`),+ },...(IS_PLATFORM? [{