Skip to content

Fix API access error by using local mock server#4372

Open
RustyCoderX wants to merge 1 commit intocoral-xyz:masterfrom
RustyCoderX:fix-api-error
Open

Fix API access error by using local mock server#4372
RustyCoderX wants to merge 1 commit intocoral-xyz:masterfrom
RustyCoderX:fix-api-error

Conversation

@RustyCoderX
Copy link

Changed GraphQL codegen configs to use local mock server (http://localhost:4000/v2/graphql) instead of production API
Added mock-server script to package.json
How it works:

Run yarn mock-server → starts local GraphQL server on port 4000
Run yarn build → codegen fetches schema from local server (no access denied)
Run yarn start → app uses local API via .env BACKEND_API_URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant