-
Notifications
You must be signed in to change notification settings - Fork 242
feat: allow customization of the supabase root directory name and config paths #2139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you mean to customize like If you mean |
Yes I mean
|
|
@sweatybridge I'm also interested in the possibility to place Supabase directories anywhere I want in my project. |
I see, so perhaps a Within workdir = '..'
[migrations]
path = './migrations/*.sql'
[seed]
path = './seed.sql'
[functions.slug]
path = '../src/index.ts' |
This could indeed be handy. I using a monorepo for multiple identical apps with the same supabase setup and would like to have separate config (with different |
This would also be handy to have separate containers and volumes for running e2e tests without touching your development instances. |
Is your feature request related to a problem? Please describe.
I have a monorepo that has a very specific naming structure with
/apps
and/libs
folders. The option for--workdir
is great when initializing a new project, however I would love to specify the name of the root directory alongside this.Describe the solution you'd like
Having a cli flag for
--rootname <folder name>
would be great.Describe alternatives you've considered
The alternative is to place a parent folder with the desired name before initializing a project. Eg:
apps/testproject/supabase
.Something like this is required for multiple projects to exist within a monorepo.
Additional context
This appears to currently be hardcoded in internal/utils/misc.go.
I am unsure whether other considerations are needed such as an indicator for what is a supabase directory or not. Maybe the CLI can automatically detect this based off
--workdir
or the contents of thecwd
.The text was updated successfully, but these errors were encountered: