Skip to content

replace axios with fetch#413

Merged
nilsnolde merged 1 commit intovalhalla:masterfrom
thisisharsh7:axios-to-fetch
Apr 3, 2026
Merged

replace axios with fetch#413
nilsnolde merged 1 commit intovalhalla:masterfrom
thisisharsh7:axios-to-fetch

Conversation

@thisisharsh7
Copy link
Copy Markdown
Contributor

Issue

axios was being used for API calls, but given the recent security concern raised in #410 and the fact that we're not relying on any axios-specific features, it adds unnecessary dependency risk.

Changes

  • removed axios from dependencies
  • replaced axios calls with native fetch
  • updated error handling to match fetch behaviour

Testing

Tested locally, API responses and behaviour remain the same as before.

Notes

Main implementation was done by me. AI was used for handling some error cases.

Closes #411

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 3, 2026

Preview is ready! 🚀 You can view it here: https://valhalla-app-tests.gis-ops.com/413

@nilsnolde nilsnolde merged commit 9d0f143 into valhalla:master Apr 3, 2026
3 checks passed
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.

Get rid of axios in favor of fetch

3 participants