Connect frontend to oRPC server
- Add Vite proxy to forward /api/v1/rpc to API server (port 9861) - Create oRPC client in src/lib/api/client.ts - Add @orpc/client and @orpc/contract dependencies - Add @reviq/api-contract workspace dependency - Extract DEFAULT_PORT constant to api-server/src/constants.ts - Change API server default port from 3001 to 9861 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
3
bun.lock
3
bun.lock
@@ -50,6 +50,9 @@
|
||||
"name": "@apps/publisher-dashboard",
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"@orpc/client": "^1.13.2",
|
||||
"@orpc/contract": "^1.13.2",
|
||||
"@reviq/api-contract": "workspace:*",
|
||||
"@tanstack/svelte-query": "^6.0.14",
|
||||
"@tanstack/svelte-query-devtools": "^6.0.3",
|
||||
"bits-ui": "^2.15.4",
|
||||
|
||||
Reference in New Issue
Block a user