@nextclaw/ui 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/vite.config.ts +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @nextclaw/ui
|
|
2
2
|
|
|
3
|
+
## 0.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Decouple dev orchestration from CLI runtime by moving `pnpm dev start` into a dedicated repo-level dev runner and Vite config, while keeping production CLI startup paths free of dev-only port/frontend handling.
|
|
8
|
+
|
|
9
|
+
Also remove `--frontend` and `--frontend-port` from `start`/`restart`/`serve` command options.
|
|
10
|
+
|
|
3
11
|
## 0.3.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -2,6 +2,9 @@ import { defineConfig } from 'vite';
|
|
|
2
2
|
import react from '@vitejs/plugin-react';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
|
|
5
|
+
const apiBase = process.env.VITE_API_BASE ?? 'http://127.0.0.1:18792';
|
|
6
|
+
const wsBase = apiBase.replace(/^http/i, 'ws');
|
|
7
|
+
|
|
5
8
|
export default defineConfig({
|
|
6
9
|
plugins: [react()],
|
|
7
10
|
resolve: {
|
|
@@ -10,14 +13,16 @@ export default defineConfig({
|
|
|
10
13
|
}
|
|
11
14
|
},
|
|
12
15
|
server: {
|
|
13
|
-
|
|
16
|
+
host: '127.0.0.1',
|
|
17
|
+
port: 5174,
|
|
18
|
+
strictPort: true,
|
|
14
19
|
proxy: {
|
|
15
20
|
'/api': {
|
|
16
|
-
target:
|
|
21
|
+
target: apiBase,
|
|
17
22
|
changeOrigin: true
|
|
18
23
|
},
|
|
19
24
|
'/ws': {
|
|
20
|
-
target:
|
|
25
|
+
target: wsBase,
|
|
21
26
|
ws: true
|
|
22
27
|
}
|
|
23
28
|
}
|