Skip to content

Commit 12c9348

Browse files
authored
fix: opt into new entrypoint only if using fixed version of serverless-functions-api (#6350)
1 parent bf11542 commit 12c9348

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/zip-it-and-ship-it/src/feature_flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const defaultFlags = {
3131
zisi_add_instrumentation_loader: true,
3232

3333
// Dynamically import the function handler.
34-
zisi_dynamic_import_function_handler: false,
34+
zisi_dynamic_import_function_handler_entry_point: false,
3535
} as const
3636

3737
export type FeatureFlags = Partial<Record<keyof typeof defaultFlags, boolean>>

packages/zip-it-and-ship-it/src/runtimes/node/utils/entry_file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const getEntryFileContents = (
5151
const importPath = `.${mainPath.startsWith('/') ? mainPath : `/${mainPath}`}`
5252

5353
if (runtimeAPIVersion === 2) {
54-
if (featureFlags.zisi_dynamic_import_function_handler) {
54+
if (featureFlags.zisi_dynamic_import_function_handler_entry_point) {
5555
return [
5656
`import * as bootstrap from './${BOOTSTRAP_FILE_NAME}'`,
5757
`export const handler = bootstrap.getLambdaHandler('${importPath}')`,

0 commit comments

Comments
 (0)