mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Create repo.js
This commit is contained in:
parent
87b32a2831
commit
0c686baf4f
10
website/workers/repo.js
Normal file
10
website/workers/repo.js
Normal file
@ -0,0 +1,10 @@
|
||||
addEventListener('fetch', event => {
|
||||
event.respondWith(handleRequest(event.request))
|
||||
})
|
||||
|
||||
async function handleRequest(request) {
|
||||
let url = new URL(request.url);
|
||||
url.hostname = 'repo.yandex.ru';
|
||||
url.pathname = '/clickhouse' + url.pathname;
|
||||
return fetch(url)
|
||||
}
|
Loading…
Reference in New Issue
Block a user