Skip to content

Commit

Permalink
fix: pretty-print config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Sep 2, 2021
1 parent 911d5b3 commit 841164e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ func Link(url string) error {
return err
}
o.Set("dbVersion", dbVersion)
newConfig, err := json.Marshal(o)
newConfig, err := json.MarshalIndent(o, "", " ")
if err != nil {
return err
}
newConfig = append(newConfig, '\n')

if err := os.WriteFile("supabase/config.json", newConfig, 0644); err != nil {
return err
Expand Down

0 comments on commit 841164e

Please sign in to comment.