We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b303dd4 commit ebf0840Copy full SHA for ebf0840
src/lib/optimizeImage.ts
@@ -1,5 +1,11 @@
1
export default function optimizeImage(url: string, width?: number) {
2
- if (!url.includes('https://images.velog.io')) return url;
+ if (
3
+ !url.includes('https://images.velog.io') &&
4
+ !url.includes('https://media.vlpt.us')
5
+ )
6
+ return url;
7
+
8
+ if (url.includes('?')) return url;
9
if (url.includes('.svg')) return url;
10
11
let replaced = url.replace('://images.velog.io', '://media.vlpt.us'); // Cloudflare
0 commit comments