Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/banner.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export type ConfigSchema = v.InferOutput<typeof configSchema>
/**
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() }),
)
Expand Down
6 changes: 3 additions & 3 deletions src/utils/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() }),
)
Expand Down Expand Up @@ -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() }),
)
Expand All @@ -91,7 +91,7 @@ export const fetchFile = createServerFn({ method: 'GET' })
})

export const fetchRepoDirectoryContents = createServerFn({
method: 'GET',
method: 'POST',
})
.inputValidator(
v.object({
Expand Down
Loading