Skip to content

Commit 928ec38

Browse files
authored
docs: bump openapi framework version (#10172)
### Description Fixes a bug that made the OpenAPI spec inputs not interactive. You can now type into the inputs and it will show up in the snippets for your copy-pasting enjoyment.
1 parent 3caf466 commit 928ec38

File tree

6 files changed

+623
-191
lines changed

6 files changed

+623
-191
lines changed

docs/site/app/api/remote-cache-minutes-saved/route.ts

+8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ export interface TurborepoMinutesSaved {
2525

2626
export const getRemoteCacheSavedMinutes =
2727
async (): Promise<TurborepoMinutesSaved> => {
28+
if (!process.env.VERCEL && !process.env.TINYBIRD_TIME_SAVED_TOKEN) {
29+
return {
30+
total: 100000,
31+
remoteCacheMinutesSaved: 50000,
32+
localCacheMinutesSaved: 50000,
33+
};
34+
}
35+
2836
const raw = await fetch(pathKey).then(
2937
(res) => res.json() as unknown as QueryResponse
3038
);

docs/site/content/repo-docs/core-concepts/remote-caching.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ You can also self-host your own Remote Cache and log into it using the `--manual
190190
turbo login --manual
191191
```
192192

193-
You can [find the OpenAPI specification for the API here](/api/remote-cache-spec). At this time, all versions of `turbo` are compatible with the `v8` endpoints.
193+
#### OpenAPI specification
194+
195+
You can [find the OpenAPI specification for the API here](/repo/docs/openapi). At this time, all versions of `turbo` are compatible with the `v8` endpoints.
194196

195197
#### Community implementations
196198

docs/site/lib/create-metadata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const getBaseURL = (): URL => {
99
return new URL(`https://${process.env.VERCEL_URL}`);
1010
}
1111

12-
return new URL(`http://localhost:${process.env.PORT || 3335}`);
12+
return new URL(`http://localhost:${process.env.PORT || 3000}`);
1313
};
1414

1515
const createOgImagePath = ({

docs/site/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"framer-motion": "12.2.0",
3636
"fumadocs-core": "^14.7.7",
3737
"fumadocs-mdx": "^11.3.1",
38-
"fumadocs-openapi": "^6.0.7",
38+
"fumadocs-openapi": "^7.0.1",
3939
"fumadocs-ui": "^14.7.7",
4040
"geist": "^1.3.0",
4141
"lucide-react": "^0.479.0",

docs/site/scripts/sync-algolia.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const getDomain = () => {
3535
}
3636

3737
// For local development
38-
return "http://localhost:3335";
38+
return `http://localhost:${process.env.PORT || 3000}`;
3939
};
4040

4141
void sync(algoliaClient, {

0 commit comments

Comments
 (0)