Both images converted to WebP (1.4 MB and 2.0 MB PNG down to 60 KB and 100 KB) and served from the PAGES map. The photo already carries the network lines, so the inline SVG pattern is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfjzaeuedkpHBD7LkFm
This commit is contained in:
1 parent
6b6215f1b5
commit
b182700fff
6 files changed
+17
-22
No files matched your search
@@ -70,6 +70,14 @@ test('serves the browser tab icons', async () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('serves the page photos', async () => {
|
||||
for (const url of ['/hero-bg.webp', '/why-iptv.webp']) {
|
||||
const res = await fetch(`${base}${url}`);
|
||||
assert.strictEqual(res.status, 200, url);
|
||||
assert.strictEqual(res.headers.get('content-type'), 'image/webp', url);
|
||||
}
|
||||
});
|
||||
|
||||
test('valid lead is stored', async () => {
|
||||
const res = await post(valid);
|
||||
assert.strictEqual(res.status, 201);
|
||||
|
||||
Reference in new issue
Block a user