Skip to content

Commit c715c73

Browse files
committed
feat: add redirects for crawlee.dev/js
Related: apify/crawlee#2872
1 parent f0d02ad commit c715c73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nginx.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,16 @@ server {
421421
location /python {
422422
proxy_pass https://apify.github.io/crawlee-python/;
423423
}
424+
424425
# So that we can have both GH pages and crawlee.dev/python working and loading assets from the same path
425426
location /crawlee-python {
426427
proxy_pass https://apify.github.io/crawlee-python/;
427428
}
429+
430+
# Redirect rule for old JS docs to go under /js prefix
431+
rewrite ^/docs(.*)$ /js/docs$1 permanent;
432+
rewrite ^/api(.*)$ /js/api$1 permanent;
433+
428434
# Redirect rule for "upgrading-to-v03" to "upgrading-to-v0x"
429435
rewrite ^/python/docs/upgrading/upgrading-to-v03$ /python/docs/upgrading/upgrading-to-v0x permanent;
430436

0 commit comments

Comments
 (0)