[FA-11] Hopefully resolves build issues, although I don't know why the build_gateway was necessarily failing in build.yml and trying to access Debug bins
This commit is contained in:
@@ -25,8 +25,8 @@ VITE_CODEGEN_TOKEN=your_api_token
|
||||
## Scripts
|
||||
|
||||
- `npm run dev`: start Vite dev server.
|
||||
- `npm run build`: type-check + build (runs codegen first via `prebuild`).
|
||||
- `npm run codegen`: generate typed hooks from `src/**/*.graphql` into `src/__generated__/graphql.ts`.
|
||||
- `npm run build`: type-check + production build.
|
||||
- `npm run codegen`: generate typed hooks from `src/**/*.graphql` into `src/__generated__/graphql.ts`. **Run this manually after changing GraphQL operations or when the gateway schema changes.**
|
||||
|
||||
## Project notes
|
||||
|
||||
@@ -39,4 +39,4 @@ VITE_CODEGEN_TOKEN=your_api_token
|
||||
|
||||
- Default schema URL: `CODEGEN_SCHEMA_URL` (falls back to `VITE_GRAPHQL_URI`, then `https://localhost:5001/graphql`).
|
||||
- Add `VITE_CODEGEN_TOKEN` (or `CODEGEN_TOKEN`) if your gateway requires a bearer token during introspection.
|
||||
- Generated outputs land in `src/__generated__/graphql.ts` (git-ignored). Run `npm run codegen` after schema/operation changes or rely on `npm run build` (runs `prebuild`).
|
||||
- Generated outputs land in `src/__generated__/graphql.ts` (committed to git). Run `npm run codegen` after schema/operation changes.
|
||||
|
||||
Reference in New Issue
Block a user