Skip to content

Commit ae43402

Browse files
committed
feat: add internal functions:serve load-dist-functions knob
This adds an unstable, undocumented configuration knob that instructs `netlify functions:serve` to load dist bundles, rather than to build and serve local functions. This configuration knob is useful for internal testing of SDK-injected functions.
1 parent 60729fc commit ae43402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/functions/functions-serve.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const functionsServe = async (options: OptionValues, command: BaseCommand
5050
})
5151

5252
await startFunctionsServer({
53+
loadDistFunctions: process.env.NETLIFY_FUNCTIONS_SERVE_LOAD_DIST_FUNCTIONS === 'true',
5354
blobsContext,
5455
config,
5556
debug: options.debug,

0 commit comments

Comments
 (0)