Skip to content

Commit 3414106

Browse files
committed
불필요한 로스트아크 API base url 환경변수 제거
1 parent 51d0578 commit 3414106

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ jobs:
290290
--name ${{ matrix.name }} \
291291
-p 3000:3000 \
292292
-e DATABASE_URL="${{ secrets.DATABASE_URL }}" \
293-
-e LOA_API_BASE_URL="${{ secrets.LOA_API_BASE_URL }}" \
294293
-e LOA_API_TOKEN="${{ secrets.LOA_API_TOKEN }}" \
295294
--restart always \
296295
${{ secrets.ECR_REGISTRY }}/loa-work/${{ matrix.name }}:latest

src/go/libs/loa-api/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ import (
1010
"github.com/pkg/errors"
1111
)
1212

13+
const loaApiBaseURL = "https://developer-lostark.game.onstove.com"
14+
1315
type Client struct {
1416
baseURL string
1517
client *httpclient.Client
1618
token string
1719
}
1820

1921
func NewClient() *Client {
20-
baseURL := env.GetEnvFallback("LOA_API_BASE_URL", "https://developer-lostark.game.onstove.com")
2122
token := env.MustGetEnv("LOA_API_TOKEN")
2223

2324
return &Client{
24-
baseURL: baseURL,
25+
baseURL: loaApiBaseURL,
2526
client: httpclient.NewClient(),
2627
token: token,
2728
}

0 commit comments

Comments
 (0)