diff --git a/src/utils/banner.functions.ts b/src/utils/banner.functions.ts index 60878732..005578d9 100644 --- a/src/utils/banner.functions.ts +++ b/src/utils/banner.functions.ts @@ -28,7 +28,7 @@ export type BannerWithMeta = ActiveBanner & { } // Server function to get active banners for a given path -export const getActiveBanners = createServerFn({ method: 'GET' }) +export const getActiveBanners = createServerFn({ method: 'POST' }) .inputValidator( v.object({ pathname: v.string(), diff --git a/src/utils/config.ts b/src/utils/config.ts index 52877b60..c2b29037 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -51,7 +51,7 @@ export type ConfigSchema = v.InferOutput /** Fetch the config file for the project and validate it. */ -export const getTanstackDocsConfig = createServerFn({ method: 'GET' }) +export const getTanstackDocsConfig = createServerFn({ method: 'POST' }) .inputValidator( v.object({ repo: v.string(), branch: v.string(), docsRoot: v.string() }), ) diff --git a/src/utils/docs.ts b/src/utils/docs.ts index 7a7b177a..e9252a94 100644 --- a/src/utils/docs.ts +++ b/src/utils/docs.ts @@ -37,7 +37,7 @@ export const loadDocs = async ({ }) } -export const fetchDocs = createServerFn({ method: 'GET' }) +export const fetchDocs = createServerFn({ method: 'POST' }) .inputValidator( v.object({ repo: v.string(), branch: v.string(), filePath: v.string() }), ) @@ -68,7 +68,7 @@ export const fetchDocs = createServerFn({ method: 'GET' }) } }) -export const fetchFile = createServerFn({ method: 'GET' }) +export const fetchFile = createServerFn({ method: 'POST' }) .inputValidator( v.object({ repo: v.string(), branch: v.string(), filePath: v.string() }), ) @@ -91,7 +91,7 @@ export const fetchFile = createServerFn({ method: 'GET' }) }) export const fetchRepoDirectoryContents = createServerFn({ - method: 'GET', + method: 'POST', }) .inputValidator( v.object({