Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(web): add @multica/sdk dependency and URL config module

Naiyuan Qing3ef7d5351c14
diff --git a/apps/web/app/lib/config.ts b/apps/web/app/lib/config.ts
new file mode 100644
index 0000000000..6f4f0c1f49
--- /dev/null
+++ b/apps/web/app/lib/config.ts
@@ -0,0 +1,2 @@
+export const GATEWAY_URL = process.env.NEXT_PUBLIC_GATEWAY_URL ?? "http://localhost:3000"
+export const CONSOLE_URL = process.env.NEXT_PUBLIC_CONSOLE_URL ?? "http://localhost:4000"
diff --git a/apps/web/package.json b/apps/web/package.json
index b89ba803d5..954a40087d 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -9,9 +9,11 @@
"lint": "eslint"
},
"dependencies": {
+ "@multica/sdk": "workspace:*",
"@multica/store": "workspace:*",
"@multica/ui": "workspace:*",
"uuid": "^13.0.0",
+ "zustand": "catalog:",
"@hugeicons/core-free-icons": "^3.1.1",
"@hugeicons/react": "^1.1.4",
"next": "16.1.6",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 071cbb396e..54cf4ac212 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -208,6 +208,9 @@ importers:
'@hugeicons/react':
specifier: ^1.1.4
version: 1.1.4([email protected])
+ '@multica/sdk':
+ specifier: workspace:*
+ version: link:../../packages/sdk
'@multica/store':
specifier: workspace:*
version: link:../../packages/store
@@ -226,6 +229,9 @@ importers:
uuid:
specifier: ^13.0.0
version: 13.0.0
+ zustand:
+ specifier: 'catalog:'
devDependencies:
'@types/node':
specifier: 'catalog:'
@@ -9981,7 +9987,7 @@ snapshots:
eslint: 9.39.2([email protected])
eslint-import-resolver-node: 0.3.9
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
eslint-plugin-react: 7.37.5([email protected]([email protected]))
eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))
@@ -10014,7 +10020,7 @@ snapshots:
tinyglobby: 0.2.15
unrs-resolver: 1.11.1
optionalDependencies:
transitivePeerDependencies:
- supports-color
@@ -10029,7 +10035,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.9