Add Tailwind + shadcn UI primitives; add React Query + Orval client
This commit is contained in:
26
frontend/orval.config.ts
Normal file
26
frontend/orval.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from "orval";
|
||||
|
||||
export default defineConfig({
|
||||
api: {
|
||||
input: {
|
||||
target: "http://127.0.0.1:8000/openapi.json",
|
||||
},
|
||||
output: {
|
||||
mode: "tags-split",
|
||||
target: "src/api/generated/index.ts",
|
||||
schemas: "src/api/generated/model",
|
||||
client: "fetch",
|
||||
prettier: true,
|
||||
override: {
|
||||
mutator: {
|
||||
path: "src/api/mutator.ts",
|
||||
name: "customFetch",
|
||||
},
|
||||
query: {
|
||||
useQuery: true,
|
||||
useMutation: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user