From c715c7399170b7badec00f1862d541c87ca7320c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Wed, 19 Mar 2025 16:28:21 +0100 Subject: [PATCH] feat: add redirects for `crawlee.dev/js` Related: https://github.com/apify/crawlee/pull/2872 --- nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx.conf b/nginx.conf index 975e9521d4..d466b7ae75 100644 --- a/nginx.conf +++ b/nginx.conf @@ -421,10 +421,16 @@ server { location /python { proxy_pass https://apify.github.io/crawlee-python/; } + # So that we can have both GH pages and crawlee.dev/python working and loading assets from the same path location /crawlee-python { proxy_pass https://apify.github.io/crawlee-python/; } + + # Redirect rule for old JS docs to go under /js prefix + rewrite ^/docs(.*)$ /js/docs$1 permanent; + rewrite ^/api(.*)$ /js/api$1 permanent; + # Redirect rule for "upgrading-to-v03" to "upgrading-to-v0x" rewrite ^/python/docs/upgrading/upgrading-to-v03$ /python/docs/upgrading/upgrading-to-v0x permanent;