Skip to content

Commit 9ce71ee

Browse files
committed
fix: remove dependency on global viper
1 parent 074079e commit 9ce71ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ func loadNestedEnv(basePath string) error {
871871
if !filepath.IsAbs(basePath) {
872872
basePath = filepath.Join(repoDir, basePath)
873873
}
874-
env := viper.GetString("ENV")
874+
env := os.Getenv("SUPABASE_ENV")
875875
for cwd := basePath; cwd != filepath.Dir(repoDir); cwd = filepath.Dir(cwd) {
876876
if err := os.Chdir(cwd); err != nil && !errors.Is(err, os.ErrNotExist) {
877877
return errors.Errorf("failed to change directory: %w", err)

0 commit comments

Comments
 (0)