chore: 移除不必要的 image-proxy (#451)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-08-28 18:51:23 +08:00
committed by GitHub
parent 8ed2fbae24
commit 71519af2f3
5 changed files with 6 additions and 58 deletions

View File

@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="referrer" content="no-referrer" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">

View File

@@ -125,7 +125,7 @@
function getAvatarUrl(): string {
switch (type) {
case 'upper':
return `/image-proxy?url=${(item as UpperWithSubscriptionStatus).face}`;
return (item as UpperWithSubscriptionStatus).face;
default:
return '';
}

View File

@@ -11,8 +11,7 @@ export default defineConfig({
ws: true,
rewriteWsOrigin: true
},
'/api': 'http://localhost:12345',
'/image-proxy': 'http://localhost:12345'
'/api': 'http://localhost:12345'
},
host: true
}