File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/runtime/src/helpers Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * If this flag is enabled, we generate one function per API Route.
3
- * We'll also use the "none" bundling strategy where we fully rely on Next.js' `.nft.json` files.
4
- * This should lead to smaller bundle sizes at the same speed, but is still experimental.
2
+ * If this flag is enabled, we generate individual Lambda functions for API Routes.
3
+ * They're packed together in 50mb chunks to avoid hitting the Lambda size limit.
4
+ *
5
+ * To prevent bundling times from rising,
6
+ * we use the "none" bundling strategy where we fully rely on Next.js' `.nft.json` files.
7
+ * This should to a significant speedup, but is still experimental.
5
8
*
6
9
* If disabled, we bundle all API Routes into a single function.
7
- * This is fast, but can lead to large bundle sizes.
10
+ * This is can lead to large bundle sizes.
8
11
*
9
12
* Enabled by default. Can be disabled by passing NEXT_SPLIT_API_ROUTES=false.
10
13
*/
You can’t perform that action at this time.
0 commit comments