Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(e2e): stop Playwright's own dev server from dying on ENOSPC by not watching files

nirholasf2c8ac2ff58d
diff --git a/playwright.config.js b/playwright.config.js
index 34d77b779..f3f1628b7 100644
--- a/playwright.config.js
+++ b/playwright.config.js
@@ -63,5 +63,11 @@ export default defineConfig({
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
+ // A server this run starts itself serves a test browser, which wants the
+ // build it loaded rather than a reload on every peer's save in this shared
+ // worktree. It also skips the file watcher (vite.config.js), which is what
+ // kept this server from booting with ENOSPC while the editor's watcher held
+ // most of the inotify budget. A reused dev server keeps its own settings.
+ env: { VITE_NO_HMR: '1' },
},
});
diff --git a/vite.config.js b/vite.config.js
index 741d054f7..cb59e6c18 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -287,7 +287,14 @@ const appConfig = {
// whole inotify budget, and died at boot with "ENOSPC: System limit for
// number of file watchers reached". This list is merged with Vite's own
// defaults, not a replacement for them.
- watch: { ignored: ['**/.claude/worktrees/**'] },
+ //
+ // With hot reload off (VITE_NO_HMR, an e2e run) there is no client to tell
+ // about a change, and the whole reason it is off is that a test browser
+ // wants the build it loaded, not a peer's mid-run save. So that server
+ // does not watch at all: the editor's own watcher and a couple of peer dev
+ // servers already sit near the inotify ceiling on this box, and an e2e
+ // stack that needs none of it was the one dying on ENOSPC at boot.
+ watch: HMR === false ? null : { ignored: ['**/.claude/worktrees/**'] },
proxy: {
'/r2-proxy': {
target: 'https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev',