Skip to content

Commit 0ecdd77

Browse files
committed
chore: update OpenAPI schema path and relocate JSON file to static directory
1 parent 62c62a4 commit 0ecdd77

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/build-openapi-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { fileURLToPath } from 'url';
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = path.dirname(__filename);
88

9-
const target = path.resolve(__dirname, '../website/openapi.json');
9+
const target = path.resolve(__dirname, '../website/static/openapi.json');
1010
fs.writeJSON(target, trpcOpenapiDocument)
1111
.then(() => {
1212
console.log('openapi schema has been write into:', target);

website/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const config: Config = {
4444
/** @type {import('docusaurus-preset-openapi').Options} */
4545
{
4646
api: {
47-
path: './openapi.json',
47+
path: './static/openapi.json',
4848
routeBasePath: '/api',
4949
},
5050
docs: {

website/openapi.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/static/openapi.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)