We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a9054 commit ea2a9eaCopy full SHA for ea2a9ea
packages/next-drupal/src/next-drupal.ts
@@ -939,7 +939,7 @@ export class NextDrupal extends NextDrupalBase {
939
cache: options.cache,
940
})
941
942
- if (response.status === 404) {
+ if (response.status === 404 || response.status === 403) {
943
// Do not throw errors here, otherwise Next.js will catch the error and
944
// throw a 500. We want a 404.
945
return null
0 commit comments