Skip to content

Commit 2cd5d57

Browse files
feat: enable the use eszip feature flag for edge functions (#4791)
* feat: add use eszip feature flag Co-authored-by: EwanValentine <EwanValentine@users.noreply.github.com> Co-authored-by: token-generator-app[bot] <token-generator-app[bot]@users.noreply.github.com>
1 parent c0b9722 commit 2cd5d57

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/commands/deploy/deploy.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,13 @@ const bundleEdgeFunctions = async (options) => {
410410
phase: 'start',
411411
})
412412

413-
const { severityCode, success } = await runCoreSteps(['edge_functions_bundling'], { ...options, buffer: true })
413+
const { severityCode, success } = await runCoreSteps(['edge_functions_bundling'], {
414+
...options,
415+
buffer: true,
416+
featureFlags: {
417+
edge_functions_produce_eszip: true,
418+
},
419+
})
414420

415421
if (!success) {
416422
statusCb({

src/lib/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const getBuildOptions = ({ cachedConfig, options: { context, cwd, debug, dry, js
3535
cwd,
3636
featureFlags: {
3737
functionsBundlingManifest: true,
38+
edge_functions_produce_eszip: true,
3839
},
3940
})
4041

0 commit comments

Comments
 (0)