This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks-website.git
The following commit(s) were added to refs/heads/main by this push:
new 9e6b6af Remove the CDN path to fulfill apache website compliance (#99)
9e6b6af is described below
commit 9e6b6af8b32a307a7f44953f7e792c67a5665e2d
Author: hulk <[email protected]>
AuthorDate: Fri May 5 20:21:16 2023 +0800
Remove the CDN path to fulfill apache website compliance (#99)
---
src/cdn.ts | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/cdn.ts b/src/cdn.ts
index 5c8af3a..d1ae995 100644
--- a/src/cdn.ts
+++ b/src/cdn.ts
@@ -3,11 +3,5 @@ export function resolveStaticAssetsURL(path: string) {
path = '/' + path;
}
- if (process.env.NODE_ENV === 'development') {
- return path;
- }
-
- // The DNS for cdn.jsdelivr.net and fastly.jsdelivr.net cannot be accessed
from some regions.
- // For now, gcore.jsdelivr.net is still accessible, but its future
availability is uncertain.
- return
'https://gcore.jsdelivr.net/gh/apache/incubator-kvrocks-website@main/static' +
path;
+ return path
}