Skip to content

Commit aaefe22

Browse files
committed
chore: simplify function signature
1 parent 6201a1b commit aaefe22

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/runtime/src/helpers/functions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ export const generateFunctions = async (
8080
* This is just so that the nft bundler knows about them. We'll eventually do this better.
8181
*/
8282
export const generatePagesResolver = async ({
83-
constants: { INTERNAL_FUNCTIONS_SRC, FUNCTIONS_SRC = DEFAULT_FUNCTIONS_SRC, PUBLISH_DIR },
84-
}: {
85-
constants: NetlifyPluginConstants
86-
}): Promise<void> => {
83+
INTERNAL_FUNCTIONS_SRC,
84+
FUNCTIONS_SRC = DEFAULT_FUNCTIONS_SRC,
85+
PUBLISH_DIR,
86+
}: NetlifyPluginConstants): Promise<void> => {
8787
const functionsPath = INTERNAL_FUNCTIONS_SRC || FUNCTIONS_SRC
8888

8989
const jsSource = await getResolverForPages(PUBLISH_DIR)

packages/runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const plugin: NetlifyPlugin = {
155155
const apiRoutes = await getExtendedApiRouteConfigs(publish, appDir)
156156

157157
await generateFunctions(constants, appDir, apiRoutes)
158-
await generatePagesResolver({ constants })
158+
await generatePagesResolver(constants)
159159

160160
await movePublicFiles({ appDir, outdir, publish })
161161

0 commit comments

Comments
 (0)