fix : API_URL -> NEXT_PUBLIC_API_URL 일괄 변경
This commit is contained in:
@@ -47,7 +47,7 @@ async function getBills(params: {
|
||||
queryParams.append('per_page', '20');
|
||||
|
||||
const response = await fetch(
|
||||
`${process.env.API_URL}/api/v1/bills?${queryParams.toString()}`,
|
||||
`${process.env.NEXT_PUBLIC_API_URL}/api/v1/bills?${queryParams.toString()}`,
|
||||
{ method: 'GET', headers, cache: 'no-store' }
|
||||
);
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ async function getItemsList(): Promise<ItemApiData[]> {
|
||||
const headers = await getApiHeaders();
|
||||
|
||||
const response = await fetch(
|
||||
`${process.env.API_URL}/api/v1/items?group_id=1&size=100`,
|
||||
`${process.env.NEXT_PUBLIC_API_URL}/api/v1/items?group_id=1&size=100`,
|
||||
{
|
||||
method: 'GET',
|
||||
headers,
|
||||
@@ -183,7 +183,7 @@ async function getPricingList(): Promise<PriceApiItem[]> {
|
||||
const headers = await getApiHeaders();
|
||||
|
||||
const response = await fetch(
|
||||
`${process.env.API_URL}/api/v1/pricing?size=100`,
|
||||
`${process.env.NEXT_PUBLIC_API_URL}/api/v1/pricing?size=100`,
|
||||
{
|
||||
method: 'GET',
|
||||
headers,
|
||||
|
||||
Reference in New Issue
Block a user