π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fixed adding channels
Nevo David37d2e0e2020f
diff --git a/libraries/helpers/src/utils/custom.fetch.func.ts b/libraries/helpers/src/utils/custom.fetch.func.tsindex b4c175b29..c7a563a44 100644--- a/libraries/helpers/src/utils/custom.fetch.func.ts+++ b/libraries/helpers/src/utils/custom.fetch.func.ts@@ -1,5 +1,3 @@-'use client';-export interface Params {baseUrl: string;beforeRequest?: (url: string, options: RequestInit) => Promise<RequestInit>;@@ -16,7 +14,7 @@ export const customFetch = (secured: boolean = true) => {return async function newFetch(url: string, options: RequestInit = {}) {- const loggedAuth = new URL(window.location.href).searchParams.get(+ const loggedAuth = typeof window === "undefined" ? undefined : new URL(window.location.href).searchParams.get('loggedAuth');const newRequestObject = await params?.beforeRequest?.(url, options);diff --git a/libraries/helpers/src/utils/internal.fetch.ts b/libraries/helpers/src/utils/internal.fetch.tsindex 86e6cd387..84006be3f 100644--- a/libraries/helpers/src/utils/internal.fetch.ts+++ b/libraries/helpers/src/utils/internal.fetch.ts@@ -1,5 +1,5 @@-import { customFetch } from './custom.fetch.func';import { cookies } from 'next/headers';+import { customFetch } from '@gitroom/helpers/utils/custom.fetch.func';export const internalFetch = (url: string, options: RequestInit = {}) =>customFetch(