Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyTony committed Oct 17, 2023
1 parent 9679363 commit 70e7f2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions config/helper.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package config

import (
"path/filepath"

"github.com/go-kratos/kratos/v2/config"
"github.com/nextmicro/next/pkg/env"
)
Expand All @@ -12,9 +10,9 @@ var (
DefaultConfig config.Config
)

// BizConfPath returns the biz config path.
func BizConfPath() string {
return filepath.Join(env.WorkDir(), "configs", env.DeployEnvironment()+".yaml")
// BizConfFile returns the biz config filename.
func BizConfFile() string {
return env.DeployEnvironment() + ".yaml"
}

// Load loads config from config source.
Expand Down

0 comments on commit 70e7f2d

Please sign in to comment.