Skip to content

Commit

Permalink
.env change
Browse files Browse the repository at this point in the history
  • Loading branch information
dlsxody1 committed Feb 14, 2024
1 parent 9d50dcc commit 95c3a91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/apis/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const getCurrentLocation = async (
) => {
try {
const res = await fetch(
`${process.env.NEXT_PUBLIC_SERVER_BASE_URL}?latitude=${latitude}&longitude=${longitude}`
`${process.env.NEXT_PUBLIC_LOCAL}?latitude=${latitude}&longitude=${longitude}`
);
return await res.json();
} catch (error) {
Expand All @@ -19,7 +19,7 @@ export const getCurrentLocation = async (
export const getLocationSearchResults = async (search: string) => {
try {
const res = await fetch(
`${process.env.NEXT_PUBLIC_SERVER_BASE_URL}/search?search=${search}`,
`${process.env.NEXT_PUBLIC_LOCAL}/search?search=${search}`,
{
cache: 'force-cache',
}
Expand All @@ -41,7 +41,7 @@ export const getLocationSearchResults = async (search: string) => {
export const getPathLists = async ({ sx, sy, ex, ey }: PathAllRequestProps) => {
try {
const res = await fetch(
`${process.env.NEXT_PUBLIC_SERVER_BASE_URL}/destination?sx=${sx}&sy=${sy}&ex=${ex}&ey=${ey}`
`${process.env.NEXT_PUBLIC_LOCAL}/destination?sx=${sx}&sy=${sy}&ex=${ex}&ey=${ey}`
);
return await res.json();
} catch (error) {
Expand All @@ -59,7 +59,7 @@ export const getPathDetail = async ({
}: PathDetailRequestProps) => {
try {
const res = await fetch(
`${process.env.NEXT_PUBLIC_SERVER_BASE_URL}/destination/${index}?sx=${sx}&sy=${sy}&ex=${ex}&ey=${ey}`
`${process.env.NEXT_PUBLIC_LOCAL}/destination/${index}?sx=${sx}&sy=${sy}&ex=${ex}&ey=${ey}`
);
return await res.json();
} catch (error) {
Expand Down

0 comments on commit 95c3a91

Please sign in to comment.