Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
28 lines
661 B
TypeScript
28 lines
661 B
TypeScript
import { defineConfig } from 'orval'
|
|
|
|
export default defineConfig({
|
|
api: {
|
|
input: {
|
|
// Committed mirror of backend/openapi.json so ghabilee-frontend
|
|
// (satellite) can generate without a Nest sibling.
|
|
target: './openapi.json',
|
|
},
|
|
output: {
|
|
target: './api/generated/endpoints.ts',
|
|
schemas: './api/generated/models',
|
|
client: 'axios',
|
|
clean: true,
|
|
mode: 'tags-split',
|
|
override: {
|
|
mutator: {
|
|
path: './api/orval-client.ts',
|
|
name: 'orvalClient',
|
|
},
|
|
},
|
|
},
|
|
hooks: {
|
|
afterAllFilesWrite: 'prettier --write "api/generated/**/*.ts"',
|
|
},
|
|
},
|
|
})
|