Skip to content

Commit 2e200d5

Browse files
authored
fix(docs): correct delivery headers and preview details (#9042)
1 parent 5461c76 commit 2e200d5

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎apps/docs/app/llms.txt/route.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Sim is the open-source AI workspace where teams build, deploy, and manage AI age
3737
3838
## Calling the Sim API
3939
40-
- Base URL: \`${SIM_SITE_URL}\`. Every endpoint is under \`/api\`; there is no \`api.sim.ai\` host.
40+
- Sim Cloud base URL: \`${SIM_SITE_URL}\`. For self-hosted deployments, use your deployment's origin instead, including in the example below. Every endpoint is under \`/api\`; there is no \`api.sim.ai\` host.
4141
- Run a deployed workflow: \`POST ${SIM_SITE_URL}/api/v2/workflows/{workflowId}/execute\` with a JSON body like \`{ "input": { "fieldName": "value" } }\`.
4242
- Authenticate API keys with the \`X-API-Key\` header. \`Authorization: Bearer\` accepts only Sim OAuth access tokens, never API keys.
4343
- Responses wrap the payload in \`data\`. A synchronous run returns \`200 { "data": { "runId", "status", "output", ... } }\`; with \`"async": true\` in the body it returns \`202 { "data": { "runId", "statusUrl" } }\` and you poll \`statusUrl\`.

‎apps/docs/components/ui/tabs.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function Tabs({ className, ...props }: TabsProps) {
1616
<FumadocsTabs
1717
{...props}
1818
className={cn(
19-
'min-w-0 scroll-mt-[calc(var(--fd-docs-row-3,0px)+1rem)] border-[var(--border)] [&>[role=tablist]>button]:font-normal! max-sm:[&>[role=tablist]>button]:min-h-11 [&>[role=tablist]]:min-w-0 [&>[role=tablist]]:[scrollbar-width:thin]! max-sm:[&>[role=tablist]]:min-h-14',
19+
'min-w-0 scroll-mt-[calc(var(--fd-docs-row-3,0px)+1rem)] border-[var(--border)] [&>[role=tablist]>button]:font-normal! max-sm:[&>[role=tablist]>button]:min-h-11 [&>[role=tablist]]:min-w-0 [&>[role=tablist]]:[scrollbar-width:thin] max-sm:[&>[role=tablist]]:min-h-14',
2020
className
2121
)}
2222
/>

‎apps/docs/components/workflow-preview/workflow-preview.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ const SELECT_TITLES = new Set([
109109
'Operation',
110110
'Method',
111111
'Unit',
112+
'Event',
112113
'Event type',
113114
'Validation',
114115
'Account',

‎apps/docs/proxy.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ export default function proxy(request: NextRequest) {
1717

1818
if (result) {
1919
const response = NextResponse.rewrite(new URL(result, request.nextUrl))
20-
response.headers.set('Vary', 'Accept')
20+
response.headers.append('Vary', 'Accept')
2121
return response
2222
}
2323
}
2424

25-
return NextResponse.next()
25+
const response = NextResponse.next()
26+
response.headers.append('Vary', 'Accept')
27+
return response
2628
}
2729

2830
export const config = {

0 commit comments

Comments
 (0)