1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-06 14:52:50 +08:00

feat: 接入 sentry 平台

This commit is contained in:
涵曦
2024-12-18 16:42:06 +08:00
parent 0238982925
commit 7301953592
7 changed files with 80 additions and 21 deletions

View File

@@ -146,7 +146,6 @@ function prependToFile(filePath: string, text: string) {
function replaceGithubAssetUrls(content: string, githubProxy: string): string {
const pattern1 = /https:\/\/github\.com\/[^\/]+\/[^\/]+\/assets\/[\w-]+/g;
const pattern2 = /https:\/\/github\.com\/user-attachments\/assets\/[\w-]+/g;
const proxyPrefix = "https://cloudflare-github-proxy.hanxi-info.workers.dev/proxy";
// 使用正则表达式替换符合条件的链接
const transformedContent = content.replace(pattern1, (match) => {