mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-04 10:52:17 +02:00
chore: improve upon mcp prompts (#494)
* chore: improve upon mcp prompts * Update api/mcp_server/instructions.py Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
88f4477edb
commit
79a4a3c9f1
39 changed files with 3890 additions and 4744 deletions
|
|
@ -1,10 +1,22 @@
|
|||
import { defineConfig } from '@hey-api/openapi-ts';
|
||||
import { loadEnvConfig } from '@next/env';
|
||||
|
||||
// Load .env.local / .env the same way Next.js does, so client generation targets
|
||||
// the backend THIS worktree actually runs on (per-worktree BACKEND_URL set by
|
||||
// scripts/worktree-assign-port.sh). Falls back to the default dev port if unset.
|
||||
loadEnvConfig(process.cwd());
|
||||
|
||||
const backendUrl = (
|
||||
process.env.BACKEND_URL ||
|
||||
process.env.NEXT_PUBLIC_BACKEND_URL ||
|
||||
'http://127.0.0.1:8000'
|
||||
).replace(/\/+$/, '');
|
||||
|
||||
export default defineConfig({
|
||||
input: 'http://127.0.0.1:8000/api/v1/openapi.json',
|
||||
input: `${backendUrl}/api/v1/openapi.json`,
|
||||
output: 'src/client',
|
||||
plugins: [{
|
||||
name: '@hey-api/client-fetch',
|
||||
runtimeConfigPath: '../lib/apiClient',
|
||||
runtimeConfigPath: './src/lib/apiClient',
|
||||
}],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue