@@ -55,21 +55,19 @@ const coreStep = async function ({
5555 const frameworksAPISrcPath = resolve ( buildDir , packagePath || '' , FRAMEWORKS_API_EDGE_FUNCTIONS_ENDPOINT )
5656 const generatedFunctionPaths = [ internalSrcPath ]
5757
58- if ( featureFlags . netlify_build_frameworks_api ) {
59- if ( await pathExists ( frameworksAPISrcPath ) ) {
60- generatedFunctionPaths . push ( frameworksAPISrcPath )
61- }
58+ if ( await pathExists ( frameworksAPISrcPath ) ) {
59+ generatedFunctionPaths . push ( frameworksAPISrcPath )
60+ }
6261
63- const frameworkImportMap = resolve (
64- buildDir ,
65- packagePath || '' ,
66- FRAMEWORKS_API_EDGE_FUNCTIONS_ENDPOINT ,
67- FRAMEWORKS_API_EDGE_FUNCTIONS_IMPORT_MAP ,
68- )
62+ const frameworkImportMap = resolve (
63+ buildDir ,
64+ packagePath || '' ,
65+ FRAMEWORKS_API_EDGE_FUNCTIONS_ENDPOINT ,
66+ FRAMEWORKS_API_EDGE_FUNCTIONS_IMPORT_MAP ,
67+ )
6968
70- if ( await pathExists ( frameworkImportMap ) ) {
71- importMapPaths . push ( frameworkImportMap )
72- }
69+ if ( await pathExists ( frameworkImportMap ) ) {
70+ importMapPaths . push ( frameworkImportMap )
7371 }
7472
7573 const sourcePaths = [ ...generatedFunctionPaths , srcPath ] . filter ( Boolean ) as string [ ]
@@ -158,7 +156,6 @@ const getMetrics = (manifest): Metric[] => {
158156const hasEdgeFunctionsDirectories = async function ( {
159157 buildDir,
160158 constants : { INTERNAL_EDGE_FUNCTIONS_SRC , EDGE_FUNCTIONS_SRC } ,
161- featureFlags,
162159 packagePath,
163160} ) : Promise < boolean > {
164161 const hasFunctionsSrc = EDGE_FUNCTIONS_SRC !== undefined && EDGE_FUNCTIONS_SRC !== ''
@@ -173,13 +170,9 @@ const hasEdgeFunctionsDirectories = async function ({
173170 return true
174171 }
175172
176- if ( featureFlags . netlify_build_frameworks_api ) {
177- const frameworkFunctionsSrc = resolve ( buildDir , packagePath || '' , FRAMEWORKS_API_EDGE_FUNCTIONS_ENDPOINT )
178-
179- return await pathExists ( frameworkFunctionsSrc )
180- }
173+ const frameworkFunctionsSrc = resolve ( buildDir , packagePath || '' , FRAMEWORKS_API_EDGE_FUNCTIONS_ENDPOINT )
181174
182- return false
175+ return await pathExists ( frameworkFunctionsSrc )
183176}
184177
185178const logFunctions = async ( {
0 commit comments