File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import slash from 'slash'
8
8
9
9
import { HANDLER_FUNCTION_NAME , IMAGE_FUNCTION_NAME , ODB_FUNCTION_NAME } from '../constants'
10
10
11
- import { splitApiRoutes } from './flags'
12
11
import type { APILambda } from './functions'
13
12
import type { RoutesManifest } from './types'
14
13
import { escapeStringRegexp } from './utils'
@@ -102,13 +101,13 @@ export const configureHandlerFunctions = async ({
102
101
publish,
103
102
ignore = [ ] ,
104
103
apiLambdas,
105
- featureFlags ,
104
+ splitApiRoutes ,
106
105
} : {
107
106
netlifyConfig : NetlifyConfig
108
107
publish : string
109
108
ignore : Array < string >
110
109
apiLambdas : APILambda [ ]
111
- featureFlags : Record < string , unknown >
110
+ splitApiRoutes : boolean
112
111
} ) => {
113
112
const config = await getRequiredServerFiles ( publish )
114
113
const files = config . files || [ ]
@@ -168,7 +167,7 @@ export const configureHandlerFunctions = async ({
168
167
configureFunction ( HANDLER_FUNCTION_NAME )
169
168
configureFunction ( ODB_FUNCTION_NAME )
170
169
171
- if ( splitApiRoutes ( featureFlags ) ) {
170
+ if ( splitApiRoutes ) {
172
171
for ( const apiLambda of apiLambdas ) {
173
172
const { functionName, includedFiles } = apiLambda
174
173
netlifyConfig . functions [ functionName ] ||= { included_files : [ ] }
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ const plugin: NetlifyPlugin = {
180
180
ignore,
181
181
publish : relative ( process . cwd ( ) , publish ) ,
182
182
apiLambdas,
183
- featureFlags,
183
+ splitApiRoutes : splitApiRoutes ( featureFlags ) ,
184
184
} )
185
185
186
186
await movePublicFiles ( { appDir, outdir, publish, basePath } )
You can’t perform that action at this time.
0 commit comments