also looking at this
fix: serve modern image assets in native docs development
#90
2 files
+39
-1
| @@ -3372,7 +3372,7 @@ export async function startServer(options: { | ||
| 3372 | 3372 | } |
| 3373 | 3373 | |
| 3374 | 3374 | // Try to serve static files first (images, css, js, etc.) |
| 3375 | const staticExtensions = ['.png', '.jpg', '.jpeg', '.gif', '.svg', '.css', '.js', '.ico', '.woff', '.woff2', '.ttf'] | |
| 3375 | const staticExtensions = ['.png', '.jpg', '.jpeg', '.gif', '.webp', '.avif', '.svg', '.css', '.js', '.ico', '.woff', '.woff2', '.ttf'] | |
| 3376 | 3376 | if (staticExtensions.some(ext => path.endsWith(ext))) { |
| 3377 | 3377 | try { |
| 3378 | 3378 | // Try root/public first |