Skip to content

Commit 6110016

Browse files
committed
feat: enable docs/next
1 parent b87e2fb commit 6110016

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/static/redirects.njk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ eleventyExcludeFromCollections: true
112112
/docs/v9.x/* https://eslint.org/docs/latest/:splat 302!
113113

114114
# Docs for the current prerelease
115-
# As there is currently no active prerelease, redirect to latest docs
116-
/docs/next/* https://eslint.org/docs/latest/:splat 302!
115+
{% if site.locals.docs_next %}
116+
/docs/next/* https://{{ site.locals.docs_next }}/:splat 200!
117+
{% else %}
118+
/docs/next/* https://eslint.org/docs/next/:splat 302!
119+
{% endif %}
117120

118121
{% if site.locals.blog == false %}
119122
# Redirect blog back to English site

0 commit comments

Comments
 (0)