I am trying to fix this (this)[https://github.com/...
# off-topic
h
I am trying to fix this (this)[https://github.com/supabase/supabase/issues/4330#issuecomment-990071377] issue. But I can't seem to reflect the changes made in
studio
directory when running
docker-compose up
. I followed the documentation given on Self Hosting. I even tried running
studio
independently with
npm run dev
, but that resulted in a compile error. Can someone provide any steps or description to setup a development server?
g
The error you are getting here comes from a fixed nextjs issue for version 11.1.1, in supabase master nextjs has been updated to 11.1.3 so if you pull those changes it should fix your issue. For getting you changes reflected in docker-compose you need to build the studio image first(the instructions are in the Docker file of the studio directory)
h
How can I see the
TabWelcome
component in the SQL Editor section when running locally? Or switch between different saved SQL Snippets? I tried using [this](https://github.com/supabase/supabase/tree/master/studio#running-within-a-self-hosted-environment) method but it didn't work and gave me an
undefined
in the url.
Copy code
https://app.supabase.io/project/undefined/sql
g
Seems you can't save SQL snippets in studio yet
Copy code
js
{​IS_PLATFORM​ ​&&​ ​<​FavoriteButton​ ​/​>​}
As you can see the favorite button isn't being rendered in studio only on platform (which refers to the hosted dashboard)
And same with the welcome tab
Copy code
js
 let tabs = IS_PLATFORM ? [new Tab('Welcome', TAB_TYPES.WELCOME)] : []
This is in the SQL editor mobx store