Skip to content

Commit 7c5a8ae

Browse files
authored
fix: pass correct path to odb (#702)
1 parent c9a7d5e commit 7c5a8ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/templates/getHandler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ const { builder } = require("@netlify/functions");
8787
const { config } = require("${publishDir}/required-server-files.json")
8888
const path = require("path");
8989
exports.handler = ${
90-
isODB ? `builder((${makeHandler().toString()})(config));` : `(${makeHandler().toString()})(config, "${appDir}");`
90+
isODB
91+
? `builder((${makeHandler().toString()})(config, "${appDir}"));`
92+
: `(${makeHandler().toString()})(config, "${appDir}");`
9193
}
9294
`
9395

0 commit comments

Comments
 (0)