Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

chore(docs): Ignore node_modules during getFilesHash

Pavel 'Strajk' Dolecek578557576c4c
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index f0cda0fff..b0055abd0 100644
--- a/apps/docs/next.config.mjs
+++ b/apps/docs/next.config.mjs
@@ -33,6 +33,7 @@ function getFilesHash(rootPath) {
fsWalk.walkSync(rootPath, { stats: true }).forEach((e) => {
if (!e.stats.isDirectory()) {
+ if (e.path.includes(`/node_modules/`)) return // ignore node_modules which may contain symlinks
const content = fs.readFileSync(e.path, 'utf8')
processFile(e.path, content)
}