File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import prettyjson from 'prettyjson'
12
12
13
13
import { cancelDeploy } from '../../lib/api.mjs'
14
14
import { getBuildOptions , runBuild } from '../../lib/build.mjs'
15
+ import { featureFlags as edgeFunctionsFeatureFlags } from '../../lib/edge-functions/consts.mjs'
15
16
import { normalizeFunctionsConfig } from '../../lib/functions/config.mjs'
16
17
import { getLogMessage } from '../../lib/log.mjs'
17
18
import { startSpinner , stopSpinner } from '../../lib/spinner.cjs'
@@ -409,9 +410,7 @@ const bundleEdgeFunctions = async (options) => {
409
410
const { severityCode, success } = await runCoreSteps ( [ 'edge_functions_bundling' ] , {
410
411
...options ,
411
412
buffer : true ,
412
- featureFlags : {
413
- edge_functions_read_deno_config : true ,
414
- } ,
413
+ featureFlags : edgeFunctionsFeatureFlags ,
415
414
} )
416
415
417
416
if ( ! success ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import process from 'process'
3
3
4
4
import build from '@netlify/build'
5
5
6
+ import { featureFlags as edgeFunctionsFeatureFlags } from './edge-functions/consts.mjs'
7
+
6
8
/**
7
9
* The buildConfig + a missing cachedConfig
8
10
* @typedef BuildConfig
@@ -38,9 +40,8 @@ export const getBuildOptions = ({
38
40
offline,
39
41
cwd,
40
42
featureFlags : {
41
- edge_functions_config_export : true ,
43
+ ... edgeFunctionsFeatureFlags ,
42
44
functionsBundlingManifest : true ,
43
- edge_functions_produce_eszip : true ,
44
45
project_deploy_configuration_api_use_per_function_configuration_files : true ,
45
46
} ,
46
47
} )
Original file line number Diff line number Diff line change @@ -2,3 +2,10 @@ export const DIST_IMPORT_MAP_PATH = 'edge-functions-import-map.json'
2
2
export const INTERNAL_EDGE_FUNCTIONS_FOLDER = 'edge-functions'
3
3
export const EDGE_FUNCTIONS_FOLDER = 'edge-functions-dist'
4
4
export const PUBLIC_URL_PATH = '.netlify/internal/edge-functions'
5
+
6
+ // Feature flags related to Edge Functions that should be passed along to
7
+ // Netlify Build.
8
+ export const featureFlags = {
9
+ edge_functions_config_export : true ,
10
+ edge_functions_read_deno_config : true ,
11
+ }
You can’t perform that action at this time.
0 commit comments