diff --git a/templates/types/streaming/express/package.json b/templates/types/streaming/express/package.json
index 02a4139b6ef30716a3bd6b0b7887766c463c2588..21e9edc9a67743b2c9f3a87316b6be0120019d39 100644
--- a/templates/types/streaming/express/package.json
+++ b/templates/types/streaming/express/package.json
@@ -20,7 +20,7 @@
     "dotenv": "^16.3.1",
     "duck-duck-scrape": "^2.2.5",
     "express": "^4.18.2",
-    "llamaindex": "0.5.19",
+    "llamaindex": "0.5.20",
     "pdf2json": "3.0.5",
     "ajv": "^8.12.0",
     "@e2b/code-interpreter": "^0.0.5",
diff --git a/templates/types/streaming/nextjs/next.config.json b/templates/types/streaming/nextjs/next.config.json
index b854ac73479b705726f6c6d16ead6237060fc01c..74df9bb1ec671c512b0d56147169fb83453cfcef 100644
--- a/templates/types/streaming/nextjs/next.config.json
+++ b/templates/types/streaming/nextjs/next.config.json
@@ -1,8 +1,15 @@
 {
   "experimental": {
     "outputFileTracingIncludes": {
-      "/*": ["./cache/**/*"],
-      "/api/**/*": ["./node_modules/**/*.wasm"]
+      "/*": ["./cache/**/*"]
+    },
+    "outputFileTracingExcludes": {
+      "/api/files/*": [
+        ".next/**/*",
+        "node_modules/**/*",
+        "public/**/*",
+        "app/**/*"
+      ]
     }
   }
 }
diff --git a/templates/types/streaming/nextjs/package.json b/templates/types/streaming/nextjs/package.json
index 7496e35a6edd2c339196657255d49ae887c17d99..a5e1feed3c3a2f295d213da730825fe02ae2805f 100644
--- a/templates/types/streaming/nextjs/package.json
+++ b/templates/types/streaming/nextjs/package.json
@@ -25,7 +25,7 @@
     "duck-duck-scrape": "^2.2.5",
     "formdata-node": "^6.0.3",
     "got": "^14.4.1",
-    "llamaindex": "0.5.19",
+    "llamaindex": "0.5.20",
     "lucide-react": "^0.294.0",
     "next": "^14.2.4",
     "react": "^18.2.0",