Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Jan 31, 2025
1 parent 09a744b commit 9fcdfc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function ({ split = false, edge = edge_set_in_env_var } = {}) {
/** @type {string | void} */
let reroute_path;

if (split && (reroute_path = await builder.getReroutePath())) {
if (split && (reroute_path = await builder.getReroutePath?.())) {
await generate_reroute_middleware({ builder, reroute_path });
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ const plugin = function (defaults = {}) {
/** @type {string | void} */
let reroute_path;

if (!singular && (reroute_path = await builder.getReroutePath())) {
if (!singular && (reroute_path = await builder.getReroutePath?.())) {
static_config.routes.push({
src: '/.*',
middlewarePath: 'reroute',
Expand Down

0 comments on commit 9fcdfc1

Please sign in to comment.