Skip to content

Commit

Permalink
feat: set priority field on functions (#6367)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas authored Feb 2, 2024
1 parent a9212b1 commit 4836550
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/deploy/hash-fns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const hashFns = async (
})
const fileObjs = functionZips.map(
// @ts-expect-error TS(7031) FIXME: Binding element 'buildData' implicitly has an 'any... Remove this comment to see the full error message
({ buildData, displayName, generator, invocationMode, path: functionPath, runtime, runtimeVersion }) => ({
({ buildData, displayName, generator, invocationMode, path: functionPath, priority, runtime, runtimeVersion }) => ({
filepath: functionPath,
root: tmpDir,
relname: path.relative(tmpDir, functionPath),
Expand All @@ -140,6 +140,7 @@ const hashFns = async (
generator,
invocationMode,
buildData,
priority,
}),
)
const fnConfig = functionZips
Expand All @@ -154,6 +155,7 @@ const hashFns = async (
generator: curr.generator,
routes: curr.routes,
build_data: curr.buildData,
priority: curr.priority,
},
}),
{},
Expand Down

2 comments on commit 4836550

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,282
  • Package size: 280 MB
  • Number of ts-expect-error directives: 1,181

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,282
  • Package size: 280 MB
  • Number of ts-expect-error directives: 1,181

Please sign in to comment.