[eric] 9router windows CI fix: ignore XP-era junction points (Application Data) in webpack snapshot+watch — caused EPERM scandir cascading into

FlightClientEntryPlugin TypeError on GitHub Actions runneradmin user
This commit is contained in:
Eric
2026-04-22 00:09:02 -07:00
parent a53731ccbb
commit b286439e55
+21 -2
View File
@@ -16,8 +16,27 @@ const nextConfig = {
path: false,
};
}
// Stop watching logs directory to prevent HMR during streaming
config.watchOptions = { ...config.watchOptions, ignored: /[\\/](logs|\.next)[\\/]/ };
// Stop watching logs directory to prevent HMR during streaming.
// Also ignore Windows XP-era junction points in user profile that loop
// back on themselves and cause `EPERM: operation not permitted, scandir`
// on GitHub Actions runners (cascades into FlightClientEntryPlugin
// crash). Local Windows users with normal accounts don't hit this.
config.watchOptions = {
...config.watchOptions,
ignored: [
/[\\/](logs|\.next)[\\/]/,
'**/Application Data/**',
'**/Local Settings/**',
'**/AppData/Local/Application Data/**',
],
};
// Disable webpack's user-profile + node_modules snapshotting that
// triggers the same EPERM scan during `next build` on CI Windows.
config.snapshot = {
...(config.snapshot || {}),
managedPaths: [],
immutablePaths: [],
};
return config;
},
async rewrites() {