File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -601,6 +601,7 @@ func (c *config) loadFromEnv() error {
601
601
return errors .Errorf ("failed to decode env: %w" , err )
602
602
}
603
603
v := viper .New ()
604
+ v .SetEnvPrefix ("SUPABASE" )
604
605
v .SetEnvKeyReplacer (strings .NewReplacer ("." , "_" ))
605
606
v .AutomaticEnv ()
606
607
if err := v .MergeConfigMap (envKeysMap ); err != nil {
Original file line number Diff line number Diff line change @@ -343,8 +343,8 @@ func TestLoadSeedPaths(t *testing.T) {
343
343
}
344
344
345
345
func TestLoadEnv (t * testing.T ) {
346
- t .Setenv ("AUTH_JWT_SECRET " , "test-secret" )
347
- t .Setenv ("DB_ROOT_KEY " , "test-root-key" )
346
+ t .Setenv ("SUPABASE_AUTH_JWT_SECRET " , "test-secret" )
347
+ t .Setenv ("SUPABASE_DB_ROOT_KEY " , "test-root-key" )
348
348
config := NewConfig ()
349
349
// Run test
350
350
err := config .loadFromEnv ()
You can’t perform that action at this time.
0 commit comments