Skip to content

Commit d3675f5

Browse files
committed
fix: read server address from env
1 parent 4b22373 commit d3675f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func main() {
3535

3636
apiConf := apiConfig{
3737
dbClient: dbClient,
38-
baseUrl: "localhost:8080",
38+
baseUrl: os.Getenv("BACKEND_ADDRESS"),
3939
usersHandlerPath: "/api/users",
4040
postsHandlerPath: "/api/posts",
4141
}

0 commit comments

Comments
 (0)