|
@@ -67,7 +67,7 @@ export async function restApiFetch<T>({
|
|
|
revalidate?: number;
|
|
revalidate?: number;
|
|
|
}): Promise<{ status: number; body: T } | never> {
|
|
}): Promise<{ status: number; body: T } | never> {
|
|
|
try {
|
|
try {
|
|
|
- let apiUrl = api.startsWith("http") ? api : `${REST_API_URL}${api}`;
|
|
|
|
|
|
|
+ const apiUrl = api.startsWith("http") ? api : `${REST_API_URL}${api}`;
|
|
|
let bagistoCartId = "";
|
|
let bagistoCartId = "";
|
|
|
let accessToken: string | undefined = undefined;
|
|
let accessToken: string | undefined = undefined;
|
|
|
|
|
|