@hardimpactdev/craft-ui 0.0.16 → 0.0.17

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.
@@ -3,7 +3,13 @@ function getServerConfig(mode) {
3
3
  const env = loadEnv(mode, process.cwd());
4
4
  const appUrl = env.VITE_APP_URL;
5
5
  if (!appUrl) {
6
- return { host: "0.0.0.0" };
6
+ return {
7
+ host: "0.0.0.0",
8
+ watch: {
9
+ followSymlinks: false,
10
+ ignored: ["**/vendor/**", "**/node_modules/**"]
11
+ }
12
+ };
7
13
  }
8
14
  try {
9
15
  const url = new URL(appUrl);
@@ -19,10 +25,21 @@ function getServerConfig(mode) {
19
25
  host: url.hostname,
20
26
  protocol: isHttps ? "wss" : "ws",
21
27
  clientPort: isHttps ? 443 : parseInt(url.port) || 80
28
+ },
29
+ // Prevent ELOOP errors from circular symlinks in workspaces
30
+ watch: {
31
+ followSymlinks: false,
32
+ ignored: ["**/vendor/**", "**/node_modules/**"]
22
33
  }
23
34
  };
24
35
  } catch {
25
- return { host: "0.0.0.0" };
36
+ return {
37
+ host: "0.0.0.0",
38
+ watch: {
39
+ followSymlinks: false,
40
+ ignored: ["**/vendor/**", "**/node_modules/**"]
41
+ }
42
+ };
26
43
  }
27
44
  }
28
45
  export {
@@ -14,7 +14,13 @@ export function getServerConfig(mode: string): ServerOptions {
14
14
  const appUrl = env.VITE_APP_URL;
15
15
 
16
16
  if (!appUrl) {
17
- return { host: '0.0.0.0' };
17
+ return {
18
+ host: '0.0.0.0',
19
+ watch: {
20
+ followSymlinks: false,
21
+ ignored: ['**/vendor/**', '**/node_modules/**'],
22
+ },
23
+ };
18
24
  }
19
25
 
20
26
  try {
@@ -35,8 +41,20 @@ export function getServerConfig(mode: string): ServerOptions {
35
41
  protocol: isHttps ? 'wss' : 'ws',
36
42
  clientPort: isHttps ? 443 : (parseInt(url.port) || 80),
37
43
  },
44
+
45
+ // Prevent ELOOP errors from circular symlinks in workspaces
46
+ watch: {
47
+ followSymlinks: false,
48
+ ignored: ['**/vendor/**', '**/node_modules/**'],
49
+ },
38
50
  };
39
51
  } catch {
40
- return { host: '0.0.0.0' };
52
+ return {
53
+ host: '0.0.0.0',
54
+ watch: {
55
+ followSymlinks: false,
56
+ ignored: ['**/vendor/**', '**/node_modules/**'],
57
+ },
58
+ };
41
59
  }
42
60
  }
package/package.json CHANGED
@@ -56,7 +56,7 @@
56
56
  "types": "./dist/src/vite/defineCraftConfig.d.ts"
57
57
  }
58
58
  },
59
- "version": "0.0.16",
59
+ "version": "0.0.17",
60
60
  "type": "module",
61
61
  "scripts": {
62
62
  "dev": "vite",