Initial commit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BASE_URL } from "@/components/main/BaseUrl";
|
||||
import { getApiBaseUrl } from "@/components/main/BaseUrl";
|
||||
import { normalizeUserLevel } from "@/lib/userLevel";
|
||||
|
||||
export async function fetchPosts(
|
||||
@@ -12,6 +12,12 @@ export async function fetchPosts(
|
||||
rateFilter?: string;
|
||||
_id?: string;
|
||||
type?: string;
|
||||
exploreFilter?: string;
|
||||
subExpertise?: string;
|
||||
lat?: string;
|
||||
lng?: string;
|
||||
feedMode?: "grid" | "reels";
|
||||
seedPostId?: string;
|
||||
},
|
||||
token: string
|
||||
) {
|
||||
@@ -33,7 +39,7 @@ export async function fetchPosts(
|
||||
...validFilters,
|
||||
}).toString();
|
||||
|
||||
const apiUrl = `${BASE_URL}/users/web?${queryParams}`;
|
||||
const apiUrl = `${getApiBaseUrl()}/users/web?${queryParams}`;
|
||||
|
||||
const response = await fetch(apiUrl, {
|
||||
cache: "no-store",
|
||||
|
||||
Reference in New Issue
Block a user