Skip to content

Commit

Permalink
Merge pull request #231 from dayuy/main
Browse files Browse the repository at this point in the history
feat: add Model.gql
  • Loading branch information
bjwswang authored Nov 20, 2023
2 parents ffdf332 + fccd825 commit 130388b
Show file tree
Hide file tree
Showing 6 changed files with 703 additions and 214 deletions.
5 changes: 0 additions & 5 deletions graphql-server/bff-sdk/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ generates:
- plugin-typescript-swr
config:
autogenSWRKey: true
useSWRInfinite:
- getRepositories
- getComponents
- getSubscriptionsPaged
- getComponentplansPaged
2 changes: 1 addition & 1 deletion graphql-server/bff-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tenx-ui/arcadia-bff-sdk",
"version": "0.0.5",
"version": "0.0.13",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions graphql-server/bff-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export const responseMiddleware = (response: Response<unknown> | Error) => {
}
};

const devEndpoint = "/component-store-apis/bff";
const prodEndpoint = "/component-store-apis/bff";
const devEndpoint = "/kubeagi-apis/bff";
const prodEndpoint = "/kubeagi-apis/bff";
const endpoint = isProd ? prodEndpoint : devEndpoint;

export const client = new GraphQLClient(endpoint, {
Expand Down
Loading

0 comments on commit 130388b

Please sign in to comment.