feat: Add Apollo Client integration to web-dashboard with GraphQL support

- Add @apollo/client ^4.1.9 and graphql ^16.10.0 dependencies to package.json
- Add apollo-client.ts with ApolloClient configuration, HTTP link to API server, and auth link for token-based authentication
- Add Providers component wrapping children with ApolloProvider
- Wrap Sidebar and main content with Providers in root layout
- Configure cache-and-network and network-only fetch policies for queries and mutations
This commit is contained in:
nutcas3
2026-04-25 03:36:26 +03:00
parent 201ecdf62f
commit a8c6f9393f
5 changed files with 178 additions and 2 deletions
+2
View File
@@ -12,8 +12,10 @@
"test:coverage": "jest --coverage"
},
"dependencies": {
"@apollo/client": "^4.1.9",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"graphql": "^16.10.0",
"lucide-react": "^1.7.0",
"next": "16.2.2",
"radix-ui": "^1.4.3",