Skip to content

Commit 8788e44

Browse files
authored
fix: remove internal .env loading from plugin daemon (#608)
* fix: make dotenv loading optional and configurable * refactor: replace dotenv magic strings with constants * fix: remove internal dotenv loading * chore: restore unrelated dependency changes after rebase
1 parent 898ae3d commit 8788e44

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

cmd/server/main.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"context"
55

6-
"github.com/joho/godotenv"
76
"github.com/kelseyhightower/envconfig"
87
"github.com/langgenius/dify-plugin-daemon/internal/server"
98
"github.com/langgenius/dify-plugin-daemon/internal/types/app"
@@ -13,13 +12,7 @@ import (
1312
func main() {
1413
var config app.Config
1514

16-
// load env
17-
err := godotenv.Load()
18-
if err != nil {
19-
log.Warn("failed to load .env file", "error", err)
20-
}
21-
22-
err = envconfig.Process("", &config)
15+
err := envconfig.Process("", &config)
2316
if err != nil {
2417
log.Panic("error processing environment variables", "error", err)
2518
}

0 commit comments

Comments
 (0)