Skip to content

Commit

Permalink
🚩 Remove feature flag (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Jan 6, 2023
1 parent 27fdbe0 commit 41c39ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function middleware(request: NextRequest) {
const isDotHtml = pathname.slice(-5) === DOT_HTML
const isPreview = isPreviewEnabled(request)

if (IS_ARCHIVED_NEWS_DOWNLOADS.test(pathname) && Flags.IS_DEV && (Flags.IS_DEV || Flags.IS_GLOBAL_PROD)) {
if (IS_ARCHIVED_NEWS_DOWNLOADS.test(pathname) && (Flags.IS_DEV || Flags.IS_GLOBAL_PROD)) {
const rewrite = pathname.replace(pathname, `/content/dam/archive-assets/${locale}${pathname}`)
return NextResponse.rewrite(`${origin}${rewrite}`)
}
Expand Down

0 comments on commit 41c39ff

Please sign in to comment.