[eric] 9router windows CI fix v2: webpack ignore must be single regex (not array mixing regex+globs which fails validation) — combine logs/.next/Application

Data/Local Settings into one regex; snapshot.managedPaths still empty for the actual EPERM mitigation
This commit is contained in:
Eric
2026-04-22 01:02:42 -07:00
parent b286439e55
commit 21a923caed
+2 -6
View File
@@ -21,14 +21,10 @@ const nextConfig = {
// 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.
// Single regex (webpack rejects mixed regex + glob strings in array).
config.watchOptions = {
...config.watchOptions,
ignored: [
/[\\/](logs|\.next)[\\/]/,
'**/Application Data/**',
'**/Local Settings/**',
'**/AppData/Local/Application Data/**',
],
ignored: /[\\/](logs|\.next|Application Data|Local Settings)[\\/]/,
};
// Disable webpack's user-profile + node_modules snapshotting that
// triggers the same EPERM scan during `next build` on CI Windows.