Skip to content

Commit 3f1dcaf

Browse files
authored
chore: redirect old Crawlee JS versions to the latest one (#1705)
We're planning to remove some of the Crawlee versions from the documentation, as this worsens the DX and leads to longer build times. This PR adds permanent `nginx` redirects for _all single-digit minor 3.x versions_ to the `latest` documentation.
1 parent aa60347 commit 3f1dcaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nginx.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ server {
437437
rewrite ^/docs(.*)$ /js/docs$1 permanent;
438438
rewrite ^/api(.*)$ /js/api$1 permanent;
439439

440+
# Remove version numbers from /js/api/3.[0-9]/* and /js/docs/3.[0-9]/*
441+
rewrite ^/js/api/3\.\d(/.*)?$ /js/api$1 permanent;
442+
rewrite ^/js/docs/3\.\d(/.*)?$ /js/docs$1 permanent;
443+
440444
# Redirect rule for "upgrading-to-v03" to "upgrading-to-v0x"
441445
rewrite ^/python/docs/upgrading/upgrading-to-v03$ /python/docs/upgrading/upgrading-to-v0x permanent;
442446

@@ -487,4 +491,4 @@ server {
487491
location / {
488492
proxy_pass https://s3.amazonaws.com/apify-docs-preview/$subdomain$uri;
489493
}
490-
}
494+
}

0 commit comments

Comments
 (0)