From ea2a9eaf27cc211ba37a2be160f0cf626989133d Mon Sep 17 00:00:00 2001 From: Chris Runo Date: Fri, 27 Jun 2025 15:54:57 +0000 Subject: [PATCH] fix(next-drupal): handle archived content responses for path translation --- packages/next-drupal/src/next-drupal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-drupal/src/next-drupal.ts b/packages/next-drupal/src/next-drupal.ts index 6bb205ae..bf8be10b 100644 --- a/packages/next-drupal/src/next-drupal.ts +++ b/packages/next-drupal/src/next-drupal.ts @@ -939,7 +939,7 @@ export class NextDrupal extends NextDrupalBase { cache: options.cache, }) - if (response.status === 404) { + if (response.status === 404 || response.status === 403) { // Do not throw errors here, otherwise Next.js will catch the error and // throw a 500. We want a 404. return null