File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 47
47
# Permanent redirects (301)
48
48
rewrite ^/docs/hostedservice/(.*)$ $scheme ://$http_host /docs/en/hosted-service/$1 permanent;
49
49
rewrite ^/docs/(?!(?:[a-zA-Z][a-zA-Z]|_next|img)(?:/|$))(.*)$ $scheme ://$http_host /docs/en/$1 permanent; # Redirect to `/en` if no language in URL and not an asset URL
50
- rewrite ^/docs/en/substreams/$ $scheme ://$http_host /docs/en/substreams/README/ permanent;
51
50
52
51
rewrite ^/docs/([a-zA-Z][a-zA-Z])/about/introduction/$ $scheme ://$http_host /docs/$1 /about/ permanent;
53
52
rewrite ^/docs/([a-zA-Z][a-zA-Z])/about/network/$ $scheme ://$http_host /docs/$1 /network/overview/ permanent;
@@ -86,6 +85,10 @@ http {
86
85
rewrite ^/docs/([a-zA-Z][a-zA-Z])/supported-networks/near/$ $scheme ://$http_host /docs/$1 /cookbook/near/ permanent;
87
86
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developing/defining-a-subgraph/$ $scheme ://$http_host /docs/$1 /developing/creating-a-subgraph/ permanent;
88
87
88
+ # Temporary redirects (302)
89
+ rewrite ^/docs/en/substreams/$ $scheme ://$http_host /docs/en/substreams/README/ redirect;
90
+ rewrite ^/docs/en/firehose/$ $scheme ://$http_host /docs/en/firehose/README/ redirect;
91
+
89
92
location / {
90
93
try_files $uri $uri .html $uri /index.html =404 ;
91
94
Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ export default withNextra({
52
52
destination : '/en/substreams/README/' ,
53
53
permanent : false ,
54
54
} ,
55
+ {
56
+ source : '/en/firehose/' ,
57
+ destination : '/en/firehose/README/' ,
58
+ permanent : false ,
59
+ } ,
55
60
] ,
56
61
webpack ( config ) {
57
62
config . module . rules . push ( {
You can’t perform that action at this time.
0 commit comments