@gxp-dev/tools 2.0.30 → 2.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxp-dev/tools",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "description": "Dev tools to create platform plugins",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -48,6 +48,7 @@ function getApiConfig() {
48
48
  const projectId = import.meta.env.VITE_API_PROJECT_ID || "";
49
49
  const useHttps = import.meta.env.VITE_USE_HTTPS !== "false";
50
50
  const nodePort = import.meta.env.VITE_NODE_PORT || "3060";
51
+ const mockPort = import.meta.env.VITE_SOCKET_IO_PORT || "3061";
51
52
 
52
53
  // Check if we're in development mode (Vite dev server)
53
54
  const isDev = import.meta.env.DEV;
@@ -56,7 +57,7 @@ function getApiConfig() {
56
57
  // Mock API: use local dev server with random token
57
58
  const protocol = useHttps ? "https" : "http";
58
59
  return {
59
- apiBaseUrl: `${protocol}://localhost:${nodePort}/mock-api`,
60
+ apiBaseUrl: `${protocol}://localhost:${mockPort}/mock-api`,
60
61
  authToken: generateMockToken(),
61
62
  projectId: "team/project",
62
63
  };
@@ -67,7 +68,7 @@ function getApiConfig() {
67
68
  if (isDev) {
68
69
  const protocol = useHttps ? "https" : "http";
69
70
  return {
70
- apiBaseUrl: `${protocol}://localhost:${nodePort}/api-proxy`,
71
+ apiBaseUrl: `${protocol}://localhost:${mockPort}/api-proxy`,
71
72
  authToken: "", // Proxy injects the token server-side
72
73
  projectId: projectId,
73
74
  };