Skip to content

Commit

Permalink
fix: Prevent auth from route rules from erroring when undefined.
Browse files Browse the repository at this point in the history
Co-authored-by: Marsel Shayhin <[email protected]>
  • Loading branch information
KyleSmith0905 and phoenix-ru authored Apr 6, 2024
1 parent dfb2ac7 commit 10f1307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const getNitroRouteRules = (path: string): Partial<RouteOptions> => {
).reverse()

for (const match of matches) {
options.disableServerSideAuth ??= match.auth.disableServerSideAuth
options.disableServerSideAuth ??= match.auth?.disableServerSideAuth
}

return options
Expand Down

0 comments on commit 10f1307

Please sign in to comment.